healthchecks_healthchecks/templates/front/details_downtimes.html
2023-09-27 17:43:18 +03:00

21 lines
581 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% load hc_extras tz %}
{% timezone tz %}
<table id="downtimes" class="table">
{% for d in downtimes %}
<tr>
<th>{{ d.boundary|date:"N Y"}}</th>
<td>
{% if d.no_data %}
{% elif d.count %}
{{ d.count }} downtime{{ d.count|pluralize }}, {{ d.duration|hc_approx_duration }} total
<span class="uptime">{{ d.monthly_uptime|pct }}% uptime</span>
{% else %}
All good!
{% endif %}
</td>
</tr>
{% endfor %}
</table>
{% endtimezone %}