mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
Merge pull request #2299 from alphagov/friendlier-datetimes
Use friendlier relative dates for ‘last edited’
This commit is contained in:
@@ -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>
|
||||
|
||||
 
|
||||
<a href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">See previous versions</a>
|
||||
 
|
||||
|
||||
Reference in New Issue
Block a user