mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-14 02:09:44 -04:00
moved a couple of stats summary functions from dashboard to a shared statistics_utils file
51 lines
1.3 KiB
HTML
51 lines
1.3 KiB
HTML
{% 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 %}
|