{% load humanize %} {% if status == "down" %} {{ check.name_then_code }} is DOWN.{% if ping %} Last ping was {{ ping.created|naturaltime }}.{% endif %} {% else %} {{ check.name_then_code }} is now UP. {% endif %}