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'] %}