2016-05-24 15:52:44 +01:00
|
|
|
|
{% extends "withoutnav_template.html" %}
|
2016-05-31 11:08:22 +01:00
|
|
|
|
{% from "components/big-number.html" import big_number, big_number_with_status %}
|
2016-05-25 16:51:09 +01:00
|
|
|
|
{% from "components/message-count-label.html" import message_count_label %}
|
2016-05-24 15:52:44 +01:00
|
|
|
|
{% from "components/browse-list.html" import browse_list %}
|
2016-06-23 17:31:45 +01:00
|
|
|
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading, text_field %}
|
2016-05-24 15:52:44 +01:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
|
|
|
|
|
Platform admin – GOV.UK Notify
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
|
|
|
|
|
<h1 class="heading-large">
|
|
|
|
|
|
Platform admin
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
|
2016-05-25 09:55:19 +01:00
|
|
|
|
{{ browse_list([
|
|
|
|
|
|
{
|
|
|
|
|
|
'title': 'View providers',
|
|
|
|
|
|
'link': url_for('.view_providers')
|
|
|
|
|
|
},
|
|
|
|
|
|
]) }}
|
2016-05-24 15:52:44 +01:00
|
|
|
|
|
2016-05-25 16:51:09 +01:00
|
|
|
|
|
2016-06-22 13:28:32 +01:00
|
|
|
|
<h2 class='heading-medium'>Today</h2>
|
|
|
|
|
|
<div class="grid-row bottom-gutter">
|
2016-05-25 16:51:09 +01:00
|
|
|
|
<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>
|
|
|
|
|
|
|
2016-06-22 13:01:53 +01:00
|
|
|
|
<h2 class='heading-medium visually-hidden'>Services</h2>
|
2016-05-31 11:08:22 +01:00
|
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
|
service_stats,
|
|
|
|
|
|
caption="All services",
|
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
|
field_headings=[
|
|
|
|
|
|
'Service',
|
2016-06-22 13:01:53 +01:00
|
|
|
|
hidden_field_heading('Status'),
|
2016-05-31 11:08:22 +01:00
|
|
|
|
right_aligned_field_heading('Sending'),
|
|
|
|
|
|
right_aligned_field_heading('Delivered'),
|
|
|
|
|
|
right_aligned_field_heading('Failed')
|
|
|
|
|
|
],
|
|
|
|
|
|
field_headings_visible=True
|
|
|
|
|
|
) %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<a href="{{ url_for('main.service_dashboard', service_id=item['id']) }}" class="browse-list-link">{{ item['name'] }}</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endcall %}
|
2016-06-23 17:31:45 +01:00
|
|
|
|
{% if item['research_mode'] %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
<span class="research-mode">research mode</span>
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% elif not item['restricted'] %}
|
|
|
|
|
|
{% call field(status='error') %}
|
|
|
|
|
|
<span class="heading-medium">
|
|
|
|
|
|
Live
|
|
|
|
|
|
</span>
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
{{ text_field('') }}
|
|
|
|
|
|
{% endif %}
|
2016-05-31 11:08:22 +01:00
|
|
|
|
{% call field(align='right') %}
|
|
|
|
|
|
{{ big_number(item['sending'], smaller=True) }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right') %}
|
|
|
|
|
|
{{ big_number(item['delivered'], smaller=True) }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right', status='error' if 0 else '') %}
|
|
|
|
|
|
{{ big_number(item['failed'], smaller=True) }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endcall %}
|
2016-05-25 16:51:09 +01:00
|
|
|
|
|
2016-05-24 15:52:44 +01:00
|
|
|
|
{% endblock %}
|