From ce1775db31d7c9c2c776774f7747c2d53e2f511b Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sun, 31 Mar 2013 20:38:30 +0100 Subject: Add basic change history page Signed-off-by: Paul Eggleton --- templates/layerindex/history.html | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 templates/layerindex/history.html (limited to 'templates') diff --git a/templates/layerindex/history.html b/templates/layerindex/history.html new file mode 100644 index 0000000000..fa7757ffa9 --- /dev/null +++ b/templates/layerindex/history.html @@ -0,0 +1,63 @@ +{% extends "base.html" %} +{% load i18n %} +{% load static %} + +{% comment %} + + layerindex-web - history list page template + + Copyright (C) 2013 Intel Corporation + Licensed under the MIT license, see COPYING.MIT for details + +{% endcomment %} + + + + +{% block content %} +{% autoescape on %} + +

Change history

+ + + + + + + + + + + + {% for revision in revisions %} + + + + + + {% endfor %} + +
Date/timeUserChange
{{ revision.date_created|timesince }} ago{{ revision.user }} + {% for version in revision.version_set.all %} + {% if version.type = 0 %} + Added + {% elif version.type = 1 %} + Changed + {% elif version.type = 2 %} + Deleted + {% endif %} + {{ version.content_type.name.lower }}: {{ version.object_repr }} +
+ {% endfor %} +
+ + {% if is_paginated %} + {% load pagination %} + {% pagination page_obj %} + {% endif %} + + +{% endautoescape %} +{% endblock %} \ No newline at end of file -- cgit 1.2.3-korg