aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-31 20:38:30 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-31 20:38:30 +0100
commitce1775db31d7c9c2c776774f7747c2d53e2f511b (patch)
treefa712dd559a22f0b9234e85d79cf5fa666135868 /templates
parent6ec84fb7f50647b4be72dc5c0b22e07cf4ec8eaf (diff)
downloadopenembedded-core-contrib-ce1775db31d7c9c2c776774f7747c2d53e2f511b.tar.gz
Add basic change history page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/layerindex/history.html63
1 files changed, 63 insertions, 0 deletions
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 title_append %} - history{% endblock %}
+-->
+
+{% block content %}
+{% autoescape on %}
+
+<h2>Change history</h2>
+
+<table class="table table-striped table-bordered layerstable">
+ <thead>
+ <tr>
+ <th>Date/time</th>
+ <th>User</th>
+ <th>Change</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {% for revision in revisions %}
+ <tr>
+ <td>{{ revision.date_created|timesince }} ago</td>
+ <td>{{ revision.user }}</td>
+ <td>
+ {% 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 }}
+ <br>
+ {% endfor %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+ {% if is_paginated %}
+ {% load pagination %}
+ {% pagination page_obj %}
+ {% endif %}
+
+
+{% endautoescape %}
+{% endblock %} \ No newline at end of file