Files
notifications-admin/app/templates/views/dashboard/_inbox.html
Chris Hill-Scott 67137f5570 Fix timestamp of latest inbound text on dashboard
Key was misnamed.
2017-06-06 12:44:59 +01:00

22 lines
645 B
HTML

{% from "components/big-number.html" import big_number, big_number_with_status %}
<div class="ajax-block">
{% if inbound_sms_summary != None %}
<div class="big-number-meta-wrapper">
{{
big_number_with_status(
inbound_sms_summary.count,
'text messages received',
link=url_for('.inbox', service_id=current_service.id),
show_failures=False
)
}}
<div class="big-number-meta">
{% if inbound_sms_summary.most_recent %}
latest message {{ inbound_sms_summary.most_recent | format_delta }}
{% endif %}
</div>
</div>
{% endif %}
</div>