mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Format numbers as millions or billions
This matches the existing performance platform page, and I think is a bit easier to read for high-level numbers where you don’t need to see that they’re changing second-by-second.
This commit is contained in:
@@ -22,28 +22,28 @@
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-one-half">
|
||||
<h3 class="govuk-visually-hidden">Total messages</h3>
|
||||
<div class="product-page-big-number">{{ total_notifications }}</div>
|
||||
<div class="product-page-big-number">{{ total_notifications|format_billions }}</div>
|
||||
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(
|
||||
email_notifications,
|
||||
email_notifications|format_billions,
|
||||
label=email_notifications|message_count_noun('email'),
|
||||
smallest=True,
|
||||
) }}
|
||||
</div>
|
||||
<div class="govuk-grid-column-one-third">
|
||||
{{ big_number(
|
||||
sms_notifications,
|
||||
sms_notifications|format_billions,
|
||||
label=sms_notifications|message_count_noun('sms'),
|
||||
smallest=True,
|
||||
) }}
|
||||
</div>
|
||||
<div class="govuk-grid-column-one-third">
|
||||
{{ big_number(
|
||||
letter_notifications,
|
||||
letter_notifications|format_billions,
|
||||
label=letter_notifications|message_count_noun('letter'),
|
||||
smallest=True,
|
||||
) }}
|
||||
|
||||
Reference in New Issue
Block a user