Files
notifications-admin/app/templates/views/performance.html
T

154 lines
4.6 KiB
HTML
Raw Normal View History

2021-03-11 12:34:22 +00:00
{% extends "withoutnav_template.html" %}
{% from "components/big-number.html" import big_number %}
{% from "components/page-header.html" import page_header %}
{% from "components/table.html" import field, list_table %}
{% block per_page_title %}
Performance data
{% endblock %}
{% block maincolumn_content %}
<div class="govuk-grid-row govuk-!-margin-bottom-8">
<div class="govuk-grid-column-two-thirds">
{{ page_header('Performance data') }}
</div>
</div>
<h2 class="govuk-heading-m">
Messages sent since May 2016
</h2>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-half">
2021-03-11 13:23:02 +00:00
<div class="product-page-big-number">{{ total_notifications|format_billions }}</div>
2021-03-11 12:34:22 +00:00
total
</div>
<div class="govuk-grid-column-one-half">
<div class="govuk-grid-row govuk-!-padding-top-4">
<div class="govuk-grid-column-one-third">
{{ big_number(
2021-03-11 13:23:02 +00:00
email_notifications|format_billions,
2021-03-11 12:34:22 +00:00
label=email_notifications|message_count_noun('email'),
smallest=True,
) }}
</div>
<div class="govuk-grid-column-one-third">
{{ big_number(
2021-03-11 13:23:02 +00:00
sms_notifications|format_billions,
2021-03-11 12:34:22 +00:00
label=sms_notifications|message_count_noun('sms'),
smallest=True,
) }}
</div>
<div class="govuk-grid-column-one-third">
{{ big_number(
2021-03-11 13:23:02 +00:00
letter_notifications|format_billions,
2021-03-11 12:34:22 +00:00
label=letter_notifications|message_count_noun('letter'),
smallest=True,
) }}
</div>
</div>
</div>
</div>
<div class="dashboard-table">
{% call(item, row_number) list_table(
2021-03-15 10:05:46 +00:00
notifications_by_type|reverse,
2021-03-12 16:18:55 +00:00
caption='Messages sent since May 2016',
2021-03-11 12:34:22 +00:00
caption_visible=False,
field_headings=[
'Date',
99|message_count_noun('email')|capitalize,
99|message_count_noun('sms')|capitalize,
99|message_count_noun('letter')|capitalize,
],
empty_message='No data to show'
) %}
{% call field() %}
{{ item.date | format_date_normal }}
{% endcall %}
{% call field() %}
{{ item.emails|format_thousands }}
{% endcall %}
{% call field() %}
{{ item.sms|format_thousands }}
{% endcall %}
{% call field() %}
{{ item.letters|format_thousands }}
{% endcall %}
{% endcall %}
2021-03-11 13:11:39 +00:00
<p class="table-show-more-link">
Only showing the last {{ notifications_by_type|length }} days
</p>
2021-03-11 12:34:22 +00:00
</div>
<h2 class="govuk-heading-m">
Messages sent within 10 seconds
</h2>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-half">
{{ big_number(
'{:.2f}%'.format(average_percentage_under_10_seconds),
2021-03-11 12:34:22 +00:00
label='on average',
) }}
</div>
</div>
<div class="dashboard-table">
{% call(item, row_number) list_table(
processing_time | reverse,
2021-03-12 16:18:55 +00:00
caption='Messages sent within 10 seconds',
2021-03-11 12:34:22 +00:00
caption_visible=False,
field_headings=[
'Date', 'Percentage'
],
empty_message='No data to show'
) %}
{% call field() %}
{{ item.date | format_date_normal }}
{% endcall %}
{% call field() %}
{{ '{:.2f}%'.format(item.percentage_under_10_seconds) }}
2021-03-11 12:34:22 +00:00
{% endcall %}
{% endcall %}
2021-03-11 13:11:39 +00:00
<p class="table-show-more-link">
Only showing the last {{ processing_time|length }} days
</p>
2021-03-11 12:34:22 +00:00
</div>
<h2 class="govuk-heading-m">
Organisations using Notify
</h2>
2021-03-11 13:29:46 +00:00
<div class="govuk-grid-row bottom-gutter">
<div class="govuk-grid-column-one-half">
2021-03-12 17:12:47 +00:00
<span class="govuk-visually-hidden">There are</span>
2021-03-11 13:29:46 +00:00
<div class="product-page-big-number">{{ count_of_live_services_and_organisations.organisations|format_thousands }}</div>
organisations
</div>
<div class="govuk-grid-column-one-half">
2021-03-12 17:12:47 +00:00
<span class="govuk-visually-hidden">and</span>
2021-03-11 13:29:46 +00:00
<div class="product-page-big-number">{{ count_of_live_services_and_organisations.services|format_thousands }}</div>
services
2021-03-12 17:12:47 +00:00
<span class="govuk-visually-hidden">using Notify.</span>
2021-03-11 13:29:46 +00:00
</div>
</div>
2021-03-11 12:34:22 +00:00
<div class="dashboard-table">
{% call(item, row_number) list_table(
organisations_using_notify,
2021-03-12 16:18:55 +00:00
caption='Organisations using Notify',
2021-03-11 12:34:22 +00:00
caption_visible=False,
field_headings=[
'Organisation', 'Number of live services'
],
empty_message='No data to show'
) %}
{% call field() %}
{{ item.organisation_name }}
{% endcall %}
{% call field() %}
{{ item.count_of_live_services }}
{% endcall %}
{% endcall %}
</div>
{% endblock %}