mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 16:18:26 -04:00
Merge pull request #717 from alphagov/service-status
Add live/trial flag on platform-admin page
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{% 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 %}
|
||||
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading %}
|
||||
|
||||
{% block page_title %}
|
||||
Platform admin – GOV.UK Notify
|
||||
@@ -22,8 +22,8 @@
|
||||
]) }}
|
||||
|
||||
|
||||
<h2 class='heading-medium'>Today's statistics</h2>
|
||||
<div class="grid-row">
|
||||
<h2 class='heading-medium'>Today</h2>
|
||||
<div class="grid-row bottom-gutter">
|
||||
<div class="column-half">
|
||||
{{ big_number_with_status(
|
||||
global_stats.emails_delivered,
|
||||
@@ -44,13 +44,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class='heading-medium'>Services</h2>
|
||||
<h2 class='heading-medium visually-hidden'>Services</h2>
|
||||
{% call(item, row_number) list_table(
|
||||
service_stats,
|
||||
caption="All services",
|
||||
caption_visible=False,
|
||||
field_headings=[
|
||||
'Service',
|
||||
hidden_field_heading('Status'),
|
||||
right_aligned_field_heading('Sending'),
|
||||
right_aligned_field_heading('Delivered'),
|
||||
right_aligned_field_heading('Failed')
|
||||
@@ -62,6 +63,11 @@
|
||||
<a href="{{ url_for('main.service_dashboard', service_id=item['id']) }}" class="browse-list-link">{{ item['name'] }}</a>
|
||||
</div>
|
||||
{% endcall %}
|
||||
{% call field(status='error') %}
|
||||
<span class="heading-medium">
|
||||
{{ '' if item['restricted'] else 'Live' }}
|
||||
</span>
|
||||
{% endcall %}
|
||||
{% call field(align='right') %}
|
||||
{{ big_number(item['sending'], smaller=True) }}
|
||||
{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user