Files
notifications-admin/app/templates/views/platform-admin.html
Leo Hemsted 83b151982e add stats boxes to platform admin page
moved a couple of stats summary functions from dashboard to a shared statistics_utils file
2016-05-31 12:17:06 +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': 'List all services',
'link': url_for('.show_all_services')
},
{
'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>
{% endblock %}