mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
This commit adds two new sections to the dashboard 1. A banner telling you about trial mode, including a count of how many messages you have left today, which is a restriction of trial mode 2. Panels with counts of how many emails and text messages have been sent in a day, plus the failure rates for each It does **not**: - link through to any further information about what trial mode is (coming later) - link through to pages for the failure rates (coming later) - change the ‘recent jobs’ section to ‘recent notifications’
26 lines
814 B
HTML
26 lines
814 B
HTML
{% from "components/big-number.html" import big_number_with_status %}
|
|
|
|
<h2 class="heading-medium">
|
|
Sent today
|
|
</h2>
|
|
<div class="grid-row">
|
|
<div class="column-half">
|
|
{{ big_number_with_status(
|
|
statistics.get('emails_requested', 0),
|
|
'email' if statistics.get('emails_requested') == 1 else 'emails',
|
|
'{}%'.format(statistics.get('emails_failure_rate', 0)),
|
|
'failed',
|
|
statistics.get('emails_percentage_of_danger_zone', 0)
|
|
) }}
|
|
</div>
|
|
<div class="column-half">
|
|
{{ big_number_with_status(
|
|
statistics.get('sms_requested', 0),
|
|
'text message' if statistics.get('sms_requested') == 1 else 'text messages',
|
|
'{}%'.format(statistics.get('sms_failure_rate', 0)),
|
|
'failed',
|
|
statistics.get('sms_percentage_of_danger_zone', 0)
|
|
) }}
|
|
</div>
|
|
</div>
|