{% with check.get_status_with_started as status %}
{% if status == "new" %}
NEW |
{% elif status == "paused" %}
PAUSED |
{% elif status == "grace" %}
LATE |
{% elif status == "up" %}
UP |
{% elif status == "started" %}
STARTED |
{% elif status == "down" %}
DOWN |
{% endif %}
{% endwith %}
|
{% if check.name %}
{{ check.name|mangle_link }}
{% else %}
unnamed
{% endif %}
{% if check.tags %}
{% for tag in check.tags_list %}
|
{% endfor %}
{% endif %}
|
{% for boundary, seconds, count in check.past_downtimes %}
{% if count %}
{{ count }} downtime{{ count|pluralize }},
{{ seconds|hc_approx_duration }} total
|
{% else %}
{% if count is None %}
{% comment %} The check didn't exist yet {% endcomment %}
{% else %}
All good!
{% endif %}
|
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}