home · contact · privacy
Refactor VersionedAttribute history pages templates.
[plomtask] / templates / process_titles.html
index 574ef1caa5065a50e9cc1206e1df5f9104b17f56..dd53a6252f67c799245542fcc76eb3f9f12590f1 100644 (file)
@@ -1,22 +1,8 @@
 {% extends '_base.html' %}
+{% import '_macros.html' as macros %}
 
 
 
 {% block content %}
-<h3>process title 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.title.history.keys() | sort(reverse=True) %}
-<tr>
-<th>{{date | truncate(19, True, '') }}</th>
-<td>{{process.title.history[date]}}</td>
-</tr>
-{% endfor %}
-
-</table>
+{{ macros.history_page("process", process, "title", process.title) }}
 {% endblock %}