mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-31 03:20:28 -04:00
50 lines
1.6 KiB
HTML
50 lines
1.6 KiB
HTML
{% from "components/pill.html" import pill %}
|
|
|
|
<div class="ajax-block-container">
|
|
{% if notifications_deleted %}
|
|
<div class="grid-row ">
|
|
{% for label, query_param, url, count in counts %}
|
|
{% if query_param == 'pending' %}
|
|
<div class="grid-col-3">
|
|
<span class="big-number-smaller">
|
|
<span class="big-number-number">
|
|
{% if count is number %}
|
|
{% if currency %}
|
|
{{ "{}{:,.2f}".format(currency, count) }}
|
|
{% else %}
|
|
{{ "{:,}".format(count) }}
|
|
{% endif %}
|
|
{% else %}
|
|
{{ count }}
|
|
{% endif %}
|
|
</span>
|
|
<span class="big-number-label">{{ query_param }}</span>
|
|
</span>
|
|
</div>
|
|
{% else %}
|
|
<div class="grid-col-3">
|
|
<span class="big-number-smaller">
|
|
<span class="big-number-number">
|
|
{% if count is number %}
|
|
{% if currency %}
|
|
{{ "{}{:,.2f}".format(currency, count) }}
|
|
{% else %}
|
|
{{ "{:,}".format(count) }}
|
|
{% endif %}
|
|
{% else %}
|
|
{{ count }}
|
|
{% endif %}
|
|
</span>
|
|
<span class="big-number-label">{{ label }}</span>
|
|
</span>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div class="tabs">
|
|
{{ pill(counts, request.args.get('status', '')) }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|