Files
notifications-admin/app/templates/views/templates/_template_history.html
Chris Hill-Scott 89d3a116b9 Put versions at bottom of single template page
Like the template ID this is an infrequently-used action on a template
and doesn’t belong at the same level as ‘Upload recipients’ or
‘Send yourself’ a test. We don’t think it’s information that’s useful to
working out which template you want to interact with, so it shouldn’t be
on the choose template page any more.
2017-03-20 11:57:11 +00:00

17 lines
567 B
HTML

<div class="column-whole">
<h2 class="message-name">{{ template.name }}</h2>
<p class="hint">
{% if template.get_raw('version', 1) > 1 %}
Edit made {% if template.get_raw('updated_at', None) %}{{ template.get_raw('updated_at')|format_datetime_normal }}{% endif %}
{% else %}
Created
{% if template.get_raw('created_at', None) %}{{ template.get_raw('created_at')|format_datetime_normal }}{% endif %}
{% endif %}
by {{ template.get_raw('created_by').name }}
</p>
</div>
<div class="column-whole">
{{ template|string }}
</div>