2016-06-28 08:59:08 +01:00
|
|
|
{% from "components/big-number.html" import big_number_with_status %}
|
|
|
|
|
{% from "components/message-count-label.html" import message_count_label %}
|
|
|
|
|
|
2017-01-23 11:56:01 +00:00
|
|
|
<div class="ajax-block-container">
|
2020-02-19 11:57:15 +00:00
|
|
|
<div class="govuk-grid-row">
|
2020-02-19 12:29:28 +00:00
|
|
|
<div id="total-email" class="govuk-grid-column-one-third">
|
2017-01-23 11:56:01 +00:00
|
|
|
{{ big_number_with_status(
|
|
|
|
|
statistics['email']['requested'],
|
2017-05-23 10:54:44 +01:00
|
|
|
message_count_label(statistics['email']['requested'], 'email', suffix='sent'),
|
2017-01-23 11:56:01 +00:00
|
|
|
statistics['email']['failed'],
|
|
|
|
|
statistics['email']['failed_percentage'],
|
|
|
|
|
statistics['email']['show_warning'],
|
|
|
|
|
failure_link=url_for(".view_notifications", service_id=service_id, message_type='email', status='failed'),
|
2017-11-09 17:17:50 +00:00
|
|
|
link=url_for(".view_notifications", service_id=service_id, message_type='email', status='sending,delivered,failed'),
|
2020-02-18 16:16:51 +00:00
|
|
|
smaller=True,
|
2017-01-23 11:56:01 +00:00
|
|
|
) }}
|
|
|
|
|
</div>
|
2020-02-19 12:29:28 +00:00
|
|
|
<div id="total-sms" class="govuk-grid-column-one-third">
|
2017-01-23 11:56:01 +00:00
|
|
|
{{ big_number_with_status(
|
|
|
|
|
statistics['sms']['requested'],
|
2017-05-23 10:54:44 +01:00
|
|
|
message_count_label(statistics['sms']['requested'], 'sms', suffix='sent'),
|
2017-01-23 11:56:01 +00:00
|
|
|
statistics['sms']['failed'],
|
|
|
|
|
statistics['sms']['failed_percentage'],
|
|
|
|
|
statistics['sms']['show_warning'],
|
|
|
|
|
failure_link=url_for(".view_notifications", service_id=service_id, message_type='sms', status='failed'),
|
2017-11-09 17:17:50 +00:00
|
|
|
link=url_for(".view_notifications", service_id=service_id, message_type='sms', status='sending,delivered,failed'),
|
2020-02-18 16:16:51 +00:00
|
|
|
smaller=True,
|
2017-01-23 11:56:01 +00:00
|
|
|
) }}
|
|
|
|
|
</div>
|
2020-02-19 12:29:28 +00:00
|
|
|
<div id="total-letters" class="govuk-grid-column-one-third">
|
2019-10-25 15:34:01 +01:00
|
|
|
{{ big_number_with_status(
|
|
|
|
|
statistics['letter']['requested'],
|
|
|
|
|
message_count_label(statistics['letter']['requested'], 'letter', suffix='sent'),
|
|
|
|
|
statistics['letter']['failed'],
|
|
|
|
|
statistics['letter']['failed_percentage'],
|
|
|
|
|
statistics['letter']['show_warning'],
|
|
|
|
|
failure_link=url_for(".view_notifications", service_id=service_id, message_type='letter', status='failed'),
|
|
|
|
|
link=url_for(".view_notifications", service_id=service_id, message_type='letter', status=''),
|
2020-02-18 16:16:51 +00:00
|
|
|
smaller=True,
|
2019-10-25 15:34:01 +01:00
|
|
|
) }}
|
|
|
|
|
</div>
|
2016-06-28 09:07:04 +01:00
|
|
|
</div>
|
2016-06-28 08:59:08 +01:00
|
|
|
</div>
|