{% load hc_extras humanize %}

"{{ check.name_then_code }}" is {{ flip.new_status|upper }}. View on {% site_name %}…

{% if check.desc %}

Description
{{ check.desc|linebreaksbr }}

{% endif %} {% cycle '' '' as trtr silent %} {% if check.project.name %} {{ trtr|safe }} {% cycle trtr %} {% endif %} {% if check.tags_list %} {{ trtr|safe }} {% cycle trtr %} {% endif %} {% if check.kind == "simple" %} {{ trtr|safe }} {% cycle trtr %} {% endif %} {% if check.kind == "cron" or check.kind == "oncalendar" %} {{ trtr|safe }} {% cycle trtr %} {{ trtr|safe }} {% cycle trtr %} {% endif %} {% if ping %} {% endif %}
Project
{{ check.project.name }}
Tags
{% for tag in check.tags_list %} {{ tag }} {% endfor %}
Period
{{ check.timeout|hc_duration }}
Schedule
{{ check.schedule }}
Time Zone
{{ check.tz }}
Total Pings
{% if ping %}{{ ping.n }}{% else %}0{% endif %} {% if check.created %}(since {{ check.created|date:'M j, Y' }}){% endif %}
Last Ping
{{ ping.created|naturaltime }}{% if ping.remote_addr %}, from {{ ping.remote_addr }}{% endif %}
Last Ping Type
{% if ping.kind == "ign" %} Ignored {% elif ping.exitstatus > 0 %} Exit status {{ ping.exitstatus }} {% elif ping.exitstatus == 0 %} Exit status 0 {% elif ping.kind == "fail" %} Failure {% elif ping.kind == "start" %} Started {% elif ping.kind == "log" %} Log {% else %} Success {% endif %}
Status Changed to {{ flip.new_status|title }} at
{{ flip.created|date:"Y-m-d H:i:s T" }}
{% if ping and ping.has_body %} {% if subject %}

Last Ping Subject
{{ subject }}

{% endif %}

Last Ping Body

{% if body is None %}

The request body data is being processed and will be available for viewing shortly. Please view it on the website.

{% else %}
{{ body|slice:":10000"|linebreaksbr }}{% if body|length > 10000 %} [truncated]{% endif %}
{% endif %} {% endif %} {% if projects %}

Projects Overview

{% for project in projects %} {% endfor %}
{{ project }} {% with project.get_n_down as n_down %} {% if n_down %} {{ n_down }} check{{ n_down|pluralize }} down {% else %} OK, all checks up {% endif %} {% endwith %}
{% endif %}


{% site_name %}
{% if check.project.name %} Unsubscribe from "{{ check.project.name }}" notifications {% else %} Unsubscribe {% endif %}