remove big_number_with_status

This commit is contained in:
stvnrlly
2023-12-16 22:28:28 -05:00
parent c30eb3a825
commit 9ab4a0c457
5 changed files with 59 additions and 65 deletions

View File

@@ -22,38 +22,3 @@
</a>
{% endif %}
{% endmacro %}
{% macro big_number_with_status(
number,
label,
failures,
failure_percentage,
danger_zone=False,
failure_link=None,
link=None,
show_failures=True,
smaller=False,
smallest=False
) %}
<span class="big-number-with-status">
{{ big_number(number, label, link=link, smaller=smaller, smallest=smallest) }}
{% if show_failures %}
<span class="big-number-status{% if danger_zone %} big-number-status--failing{% endif %}">
{% if failures %}
{% if failure_link %}
<a class="usa-link" href="{{ failure_link }}">
{{ "{:,}".format(failures) }}
failed {{ failure_percentage }}%
</a>
{% else %}
{{ "{:,}".format(failures) }}
failed {{ failure_percentage }}%
{% endif %}
{% else %}
No failures
{% endif %}
</span>
{% endif %}
</span>
{% endmacro %}