Hide ‘created at…’ on the templates page

I don’t think that if there’s only one version of the template that it’s
useful to see the created at date.

The auditing stuff only becomes relevant once someone a template has been
changed.
This commit is contained in:
Chris Hill-Scott
2016-05-24 09:10:10 +01:00
parent 76662e1c84
commit 45f21e9a10
4 changed files with 4 additions and 16 deletions

View File

@@ -7,7 +7,6 @@
from_address=None,
recipient=None,
id=None,
created_at=None,
updated_at=None,
versions_url=None,
version=1,
@@ -27,10 +26,6 @@
{% if updated_at %}
<p class="email-message-updated-at">Last updated on {{ updated_at|format_date_normal }} <a href="{{ versions_url }}">see earlier versions</a></p>
{% endif %}
{% else %}
{% if created_at %}
<p class="email-message-updated-at">Created on {{ created_at|format_date_normal }}</p>
{% endif %}
{% endif %}
<div class="email-message">
{% if from_name or subject %}

View File

@@ -6,7 +6,6 @@
edit_link=None,
from=None,
version=1,
created_at=None,
updated_at=None,
versions_url=None,
show_placeholder_for_recipient=False,
@@ -25,14 +24,10 @@
{% if updated_at %}
<p class="sms-message-updated-at">Last updated on {{ updated_at|format_date_normal }} <a href="{{ versions_url }}">see earlier versions</a></p>
{% endif %}
{% else %}
{% if created_at %}
<p class="sms-message-updated-at">Created on {{ created_at|format_date_normal }}</p>
{% endif %}
{% endif %}
{% if recipient is not none %}
<p class="sms-message-recipient">
To:
To:
{% if show_placeholder_for_recipient %}
<span class="placeholder">
phone number