Files
notifications-admin/app/templates/views/dashboard/today.html
T

34 lines
1.3 KiB
HTML
Raw Normal View History

2016-03-17 11:45:48 +00:00
{% from "components/big-number.html" import big_number_with_status %}
<h2 class="heading-medium">
In the last 7 days
2016-03-17 11:45:48 +00:00
</h2>
<div class="grid-row bottom-gutter">
2016-03-17 11:45:48 +00:00
<div class="column-half">
{{ big_number_with_status(
statistics.get('emails_delivered', 0),
'email' if statistics.get('emails_delivered') == 1 else 'emails',
2016-04-12 14:19:51 +01:00
statistics.get('emails_failed'),
2016-03-23 09:21:35 +00:00
statistics.get('emails_failure_rate', 0.0),
statistics.get('emails_failure_rate', 0)|float > 3,
failure_link=url_for(".view_notifications", service_id=current_service.id, template_type='email', status='failed')
2016-03-17 11:45:48 +00:00
) }}
</div>
<div class="column-half">
{{ big_number_with_status(
statistics.get('sms_requested', 0),
'text message' if statistics.get('sms_requested') == 1 else 'text messages',
2016-04-12 14:19:51 +01:00
statistics.get('sms_failed'),
2016-03-23 09:21:35 +00:00
statistics.get('sms_failure_rate', 0.0),
statistics.get('sms_failure_rate', 0)|float > 3,
failure_link=url_for(".view_notifications", service_id=current_service.id, template_type='sms', status='failed')
2016-03-17 11:45:48 +00:00
) }}
</div>
</div>
{% with period = "in the last 7 days" %}
{% include 'views/dashboard/template-statistics.html' %}
{% endwith %}
<p class='table-show-more-link'>
<a href="{{ url_for('.template_history', service_id=current_service.id) }}">See all templates used this year</a>
</p>