home · contact · privacy
Add VersionedAttribute history display pages for Processes.
[plomtask] / templates / process_descriptions.html
diff --git a/templates/process_descriptions.html b/templates/process_descriptions.html
new file mode 100644 (file)
index 0000000..f1b93cb
--- /dev/null
@@ -0,0 +1,23 @@
+{% extends '_base.html' %}
+
+
+
+{% block content %}
+<h3>process description history</h3>
+<table>
+
+<tr>
+<th>process</th>
+<td><a href="process?id={{process.id_}}">{{process.title.newest|e}}</a></td>
+</tr>
+
+{% for date in process.description.history.keys() | sort(reverse=True) %}
+<tr>
+<th>{{date | truncate(19, True, '') }}</th>
+<td><pre>{{process.description.history[date]}}</pre></td>
+</tr>
+{% endfor %}
+
+</table>
+{% endblock %}
+