remove big_number from _jobs.html

This commit is contained in:
stvnrlly
2023-12-17 15:35:27 -05:00
parent 9ab4a0c457
commit 1b610030fe
2 changed files with 122 additions and 20 deletions

View File

@@ -1,4 +1,3 @@
{% from "components/big-number.html" import big_number %}
{% from "components/pill.html" import pill %}
<div class="ajax-block-container">
@@ -6,11 +5,55 @@
<div class="grid-row ">
{% for label, query_param, url, count in counts %}
{% if query_param == 'pending' %}
<div class="grid-col-3">{{ big_number(count, query_param, smaller=True) }}</div>
<div class="grid-col-3">
{% if link %}
<a class="usa-link display-flex" href="{{ link }}">
{% endif %}
<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>
{% if label %}
<span class="big-number-label">{{ query_param }}</span>
{% endif %}
</span>
{% if link %}
</a>
{% endif %}
</div>
{% else %}
<div class="grid-col-3">{{ big_number(count, label, smaller=True) }}</div>
<div class="grid-col-3">
{% if link %}
<a class="usa-link display-flex" href="{{ link }}">
{% endif %}
<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>
{% if label %}
<span class="big-number-label">{{ label }}</span>
{% endif %}
</span>
{% if link %}
</a>
{% endif %}
{% endif %}
{% endfor %}
</div>
{% else %}