Files
notifications-admin/app/templates/partials/count.html
Chris Hill-Scott 93d2d47f4e Don’t show blue boxes once notifications have gone
You can click the blue boxes to filter the list of notifications. Once
the notifications have gone there’s nothing to filter, so we should just
show the numbers but without them being clickable.
2020-01-03 15:15:25 +00:00

19 lines
550 B
HTML

{% from "components/big-number.html" import big_number %}
{% from "components/pill.html" import pill %}
<div class="ajax-block-container">
{% if notifications_deleted %}
<div class="grid-row bottom-gutter-1-2">
{% for label, query_param, url, count in counts %}
<div class="column-one-quarter">
{{ big_number(count, label, smaller=True) }}
</div>
{% endfor %}
</div>
{% else %}
<div class="bottom-gutter">
{{ pill(counts, request.args.get('status', '')) }}
</div>
{% endif %}
</div>