Merge pull request #2299 from alphagov/friendlier-datetimes

Use friendlier relative dates for ‘last edited’
This commit is contained in:
Chris Hill-Scott
2018-09-10 11:55:11 +01:00
committed by GitHub

View File

@@ -57,7 +57,13 @@
<div class="bottom-gutter-1-2">
{% if template._template.updated_at %}
<h2 class="heading-small bottom-gutter-2-3 heading-inline">Last edited {{ template._template.updated_at|format_delta }}</h2>
<h2 class="heading-small bottom-gutter-2-3 heading-inline">
Last edited
<time class="timeago" datetime="{{ template._template.updated_at }}">
{{ template._template.updated_at|format_delta }}
</time>
</h2>
&emsp;
<a href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">See previous versions</a>
&emsp;