{% load url from future %} {% load adagiostags %} {% load i18n %} {% for row in hosts %} {% if row.last_check == 0 %} {% else %} {% if row.state == 0 %} {% else %} {% endif %} {% endif %} {% for i in row.services_with_info %} {% endfor %} {% endfor %}
{% trans "Host Name" %} {% trans "Address" %} {% trans "Duration" %} {% trans "Last Check" %} {% trans "Host Status" %} {% trans "Service Status" %}
{{ row.name }} {{ row.address }} {% if row.last_state_change != 0 %} {{ row.last_state_change|timestamp|timesince }} {% endif %} {% if row.last_check != 0 %} {{ row.last_check|timestamp|timesince }} ago {% else %} never {% endif %} {% trans "Pending" %}{% trans "Host UP" %}{% if row.childs %}{% trans "Network outage" %} {% else %}{% trans "Host Down" %} {% endif %}
{{i.0 }} - {{ i.3 }}