mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
table with sending/delivered/failed stats for each service today
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{% extends "withoutnav_template.html" %}
|
||||
{% from "components/big-number.html" import big_number_with_status %}
|
||||
{% from "components/big-number.html" import big_number, big_number_with_status %}
|
||||
{% from "components/message-count-label.html" import message_count_label %}
|
||||
{% from "components/browse-list.html" import browse_list %}
|
||||
{% from "components/table.html" import list_table, field, right_aligned_field_heading %}
|
||||
|
||||
{% block page_title %}
|
||||
Platform admin – GOV.UK Notify
|
||||
@@ -21,6 +22,7 @@
|
||||
]) }}
|
||||
|
||||
|
||||
<h2 class='heading-medium'>Today's statistics</h2>
|
||||
<div class="grid-row">
|
||||
<div class="column-half">
|
||||
{{ big_number_with_status(
|
||||
@@ -43,8 +45,32 @@
|
||||
</div>
|
||||
|
||||
<h2 class='heading-medium'>Services</h2>
|
||||
{{ browse_list(services) }}
|
||||
|
||||
|
||||
{% call(item, row_number) list_table(
|
||||
service_stats,
|
||||
caption="All services",
|
||||
caption_visible=False,
|
||||
field_headings=[
|
||||
'Service',
|
||||
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 %}
|
||||
{% 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 %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user