remove big_number from _totals.html and monthly.html

This commit is contained in:
stvnrlly
2023-12-17 16:27:26 -05:00
parent 845776326e
commit 4d8044bf33
3 changed files with 22 additions and 11 deletions

View File

@@ -1,10 +1,19 @@
{% from "components/big-number.html" import big_number %}
<div class="ajax-block-container">
<div class="grid-row grid-gap">
<div id="total-sms" class="grid-col-12">
<span class="big-number-with-status">
{{ big_number(statistics['sms']['requested'], statistics['sms']['requested']|message_count_label('sms', suffix='sent'), link=url_for('.view_notifications', service_id=service_id, message_type='sms', status='sending,delivered,failed'), smaller=True, smallest=smallest) }}
<a class="usa-link display-flex" href="{{ url_for('.view_notifications', service_id=service_id, message_type='sms', status='sending,delivered,failed') }}">
<span class="big-number-smaller">
<span class="big-number-number">
{% if statistics['sms']['requested'] is number %}
{{ "{:,}".format(statistics['sms']['requested']) }}
{% else %}
{{ statistics['sms']['requested'] }}
{% endif %}
</span>
<span class="big-number-label">{{ statistics['sms']['requested']|message_count_label('sms', suffix='sent') }}</span>
</span>
</a>
{% if show_failures %}
<span class="big-number-status{% if statistics['sms']['show_warning'] is sameas true %} big-number-status--failing{% endif %}">
{% if statistics['sms']['failed'] %}

View File

@@ -1,5 +1,4 @@
{% from "components/page-header.html" import page_header %}
{% from "components/big-number.html" import big_number %}
{% from "components/pill.html" import pill %}
{% from "components/table.html" import list_table, field, hidden_field_heading, right_aligned_field_heading, row_heading %}
@@ -44,11 +43,16 @@
(month.email_counts, 'email'),
] %}
{% call field(align='left') %}
{{ big_number(
counts.requested,
counts.requested|message_count_label(template_type, suffix=''),
smallest=True,
) }}
<span class="big-number-smallest">
<span class="big-number-number">
{% if counts.requested is number %}
{{ "{:,}".format(counts.requested) }}
{% else %}
{{ counts.requested }}
{% endif %}
</span>
<span class="big-number-label">{{ counts.requested|message_count_label(template_type, suffix='') }}</span>
</span>
{% if counts.requested %}
<span class="{{ 'failure-highlight' if counts.show_warning else '' }}">
{{ "{:,}".format(counts.failed) }} failed

View File

@@ -1,5 +1,3 @@
{% from "components/big-number.html" import big_number %}
{% from "components/big-number.html" import big_number %}
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, spark_bar_field %}
{% from "components/show-more.html" import show_more %}