home · contact · privacy
Refactor VersionedAttribute history pages templates.
[plomtask] / templates / process_descriptions.html
index f1b93cbd95148b137d539808e42322fd4c7a840c..15899b1e7f1509f5b3c2fe0fc7967c9f50e83b96 100644 (file)
@@ -1,23 +1,9 @@
 {% extends '_base.html' %}
+{% import '_macros.html' as macros %}
 
 
 
 {% 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>
+{{ macros.history_page("process", process, "description", process.description, as_pre=true) }}
 {% endblock %}