mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 02:58:25 -04:00
Merge pull request #471 from alphagov/craig-david
Show the last 7 days of statistics on the dashboard
This commit is contained in:
@@ -6,12 +6,18 @@
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro big_number_with_status(number, label, failures, failure_percentage, danger_zone=False) %}
|
||||
{% macro big_number_with_status(number, label, failures, failure_percentage, danger_zone=False, failure_link=None) %}
|
||||
<div class="big-number-with-status">
|
||||
{{ big_number(number, label) }}
|
||||
<div class="big-number-status{% if danger_zone %}-failing{% endif %}">
|
||||
{% if failures %}
|
||||
{{ failures }} failed – {{ failure_percentage }}%
|
||||
{% if failure_link %}
|
||||
<a href="{{ failure_link }}">
|
||||
{{ failures }} failed – {{ failure_percentage }}%
|
||||
</a>
|
||||
{% else %}
|
||||
{{ failures }} failed – {{ failure_percentage }}%
|
||||
{% endif %}
|
||||
{% else %}
|
||||
No failures
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user