{% load humanize hc_extras %}
{% if status == "down" %}
🔴 The check {{ check.name_then_code }}
is DOWN{% if flip.reason %} ({{ flip.reason_long }}){% endif %}.
{% else %}
🟢 The check {{ check.name_then_code }}
is UP.
{% endif %}
{% if check.project.name %}
Project: {{ check.project.name }}
{% endif %}
{% if check.tags_list %}
Tags: {% for tag in check.tags_list%}{{ tag }}
{% endfor %}
{% endif %}
{% if check.kind == "simple" %}
Period: {{ check.timeout|hc_duration }}
{% endif %}
{% if check.kind == "cron" or check.kind == "oncalendar" %}
Schedule: {{ check.schedule }}
Time Zone: {{ check.tz }}
{% endif %}
Total Pings: {% if ping %}{{ ping.n }}{% else %}0{% endif %}
{% if ping is None %}
Last Ping: Never
{% else %}
Last Ping: {{ ping.get_kind_display }}, {{ ping.created|naturaltime }}
{% endif %}
{% if body %}
Last Ping Body:
{{ body }}{% endif %} {% if down_checks is not None %}