Add message history

This commit is contained in:
Chris Hill-Scott
2015-12-17 14:58:37 +00:00
parent 034c70bc97
commit d4a03a40c8
5 changed files with 64 additions and 9 deletions

View File

@@ -10,3 +10,13 @@
</div>
</div>
{% endmacro %}
{% macro message_history(title, log, heading_level=2) %}
<dl class="sms-message-history">
<h{{heading_level}} class="sms-message-history-heading">{{ title }}</h{{heading_level}}>
{% for update in log %}
<dt class="sms-message-history-time">{{ update.time }}</dt>
<dd class="sms-message-history-status">{{ update.status }}</dd>
{% endfor %}
</dl>
{% endmacro %}