{% load adagiostags %} {% load i18n %}
{% 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 %} | {% if row.last_check == 0 %}{% trans "Pending" %} | {% else %} {% if row.state == 0 %}{% trans "Host UP" %} | {% else %} {% if row.state == 3 %}{% trans "Pending" %} | {% else %}{% if row.childs %}{% trans "Network outage" %} {% else %}{% trans "Host Down" %} {% endif %} | {% endif %} {% endif %} {% endif %}
|