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">
|
|
|
|
|
<div class="grid-row">
|
2017-10-02 12:34:10 +01:00
|
|
|
<div id="total-email" class="{{column_width}}">
|
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'),
|
|
|
|
|
smaller=smaller_font_size
|
2017-01-23 11:56:01 +00:00
|
|
|
) }}
|
|
|
|
|
</div>
|
2017-10-02 12:34:10 +01:00
|
|
|
<div id="total-sms" class="{{column_width}}">
|
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'),
|
|
|
|
|
smaller=smaller_font_size
|
2017-01-23 11:56:01 +00:00
|
|
|
) }}
|
|
|
|
|
</div>
|
2018-07-20 08:43:02 +01:00
|
|
|
{% if current_service.has_permission('letter') %}
|
2017-10-02 12:34:10 +01:00
|
|
|
<div id="total-letters" class="{{column_width}}">
|
|
|
|
|
{{ 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'),
|
2017-11-09 17:17:50 +00:00
|
|
|
link=url_for(".view_notifications", service_id=service_id, message_type='letter', status=''),
|
2019-01-08 17:52:01 +00:00
|
|
|
smaller=smaller_font_size
|
2017-10-02 12:34:10 +01:00
|
|
|
) }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2016-06-28 09:07:04 +01:00
|
|
|
</div>
|
2016-06-28 08:59:08 +01:00
|
|
|
</div>
|