2016-06-08 16:34:26 +01:00
|
|
|
{% from "components/pill.html" import pill %}
|
2016-04-27 09:28:42 +01:00
|
|
|
|
2019-12-30 16:53:45 +00:00
|
|
|
<div class="ajax-block-container">
|
|
|
|
|
{% if notifications_deleted %}
|
2023-09-15 12:26:31 -04:00
|
|
|
<div class="grid-row ">
|
2019-12-30 16:53:45 +00:00
|
|
|
{% for label, query_param, url, count in counts %}
|
2023-06-27 08:20:58 -07:00
|
|
|
{% if query_param == 'pending' %}
|
2023-12-17 15:35:27 -05:00
|
|
|
<div class="grid-col-3">
|
2023-12-18 16:09:23 -05:00
|
|
|
<span class="big-number-smaller">
|
|
|
|
|
<span class="big-number-number">
|
|
|
|
|
{% if count is number %}
|
|
|
|
|
{% if currency %}
|
|
|
|
|
{{ "{}{:,.2f}".format(currency, count) }}
|
2023-12-17 15:35:27 -05:00
|
|
|
{% else %}
|
2023-12-18 16:09:23 -05:00
|
|
|
{{ "{:,}".format(count) }}
|
2023-12-17 15:35:27 -05:00
|
|
|
{% endif %}
|
2023-12-18 16:09:23 -05:00
|
|
|
{% else %}
|
|
|
|
|
{{ count }}
|
2023-12-17 15:35:27 -05:00
|
|
|
{% endif %}
|
|
|
|
|
</span>
|
2023-12-18 16:09:23 -05:00
|
|
|
<span class="big-number-label">{{ query_param }}</span>
|
|
|
|
|
</span>
|
2023-12-17 15:35:27 -05:00
|
|
|
</div>
|
2023-06-27 08:20:58 -07:00
|
|
|
{% else %}
|
2023-12-17 15:35:27 -05:00
|
|
|
<div class="grid-col-3">
|
2023-12-18 16:09:23 -05:00
|
|
|
<span class="big-number-smaller">
|
|
|
|
|
<span class="big-number-number">
|
|
|
|
|
{% if count is number %}
|
|
|
|
|
{% if currency %}
|
|
|
|
|
{{ "{}{:,.2f}".format(currency, count) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ "{:,}".format(count) }}
|
2023-12-17 15:35:27 -05:00
|
|
|
{% endif %}
|
2023-12-18 16:09:23 -05:00
|
|
|
{% else %}
|
|
|
|
|
{{ count }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="big-number-label">{{ label }}</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2023-06-27 08:20:58 -07:00
|
|
|
{% endif %}
|
2019-12-30 16:53:45 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
{% else %}
|
2023-09-15 12:26:31 -04:00
|
|
|
<div class="tabs">
|
2019-12-30 16:53:45 +00:00
|
|
|
{{ pill(counts, request.args.get('status', '')) }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2016-04-27 09:28:42 +01:00
|
|
|
</div>
|