{% 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 %}
{% extends '_base.html' %}
+{% import '_macros.html' as macros %}
{% block content %}
-<h3>process default effort 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.effort.history.keys() | sort(reverse=True) %}
-<tr>
-<th>{{date | truncate(19, True, '') }}</th>
-<td>{{process.effort.history[date]}}</td>
-</tr>
-{% endfor %}
-
-</table>
+{{ macros.history_page("process", process, "effort", process.effort) }}
{% endblock %}
{% 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 %}