Files
notifications-admin/app/templates/views/platform-admin.html
2016-05-31 14:07:19 +01:00

51 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "withoutnav_template.html" %}
{% from "components/big-number.html" import big_number_with_status %}
{% from "components/message-count-label.html" import message_count_label %}
{% from "components/browse-list.html" import browse_list %}
{% block page_title %}
Platform admin GOV.UK Notify
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">
Platform admin
</h1>
{{ browse_list([
{
'title': 'View providers',
'link': url_for('.view_providers')
},
]) }}
<div class="grid-row">
<div class="column-half">
{{ big_number_with_status(
global_stats.emails_delivered,
message_count_label(global_stats.emails_delivered, 'email'),
global_stats.emails_failed,
global_stats.emails_failure_rate,
global_stats.emails_failure_rate|float > 3,
) }}
</div>
<div class="column-half">
{{ big_number_with_status(
global_stats.sms_delivered,
message_count_label(global_stats.sms_delivered, 'sms'),
global_stats.sms_failed,
global_stats.sms_failure_rate,
global_stats.sms_failure_rate|float > 3,
) }}
</div>
</div>
<h2 class='heading-medium'>Services</h2>
{{ browse_list(services) }}
{% endblock %}