{% 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 %}
{% if check.name|length > 20 %}
{{ check.name|mangle_link }}
{% else %}
{{ check.name|mangle_link }}
{% endif %}
{% else %}
unnamed
{% endif %}
{% if check.tags %}
{% for tag in check.tags_list %}
|
{% endfor %}
{% endif %}
|
{% for boundary, seconds, count in check.downtimes %}
{% if not forloop.last %}
{% if count %}
{{ count }} downtime{{ count|pluralize }},
{{ seconds|hc_approx_duration }} total
|
{% else %}
All good!
|
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}