Beautify the template version links and template link page.

This commit is contained in:
Nicholas Staples
2016-05-20 13:58:16 +01:00
parent 4c2ee8e8ed
commit 83f25cd89b
9 changed files with 92 additions and 22 deletions

View File

@@ -6,7 +6,13 @@
from_name=None,
from_address=None,
recipient=None,
show_placeholder_for_recipient=False
id=None,
created_at=None,
updated_at=None,
versions_url=None,
version=1,
show_placeholder_for_recipient=False,
show_id=False
) %}
{% if name %}
<h3 class="email-message-name">
@@ -15,9 +21,17 @@
{% else %}
{{ name }}
{% endif %}
{% if created_at %}{{ created_at }}{% endif %}
</h3>
{% endif %}
{% if version > 1 %}
{% 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 %}
<table class="email-message-meta">