{% load i18n tz %} {% load gui_utils %} {% get_current_timezone as TZ %} {% with show_events=alert_filter.show_events dc_bound=alert_filter.dc_bound %} {% if alerts %} {% if show_events %}{% endif %} {% endif %} {% for alert in alerts %} {% with last_change=alert.last_change|dttimestamp:TZ %} {% if show_events %} {% endif %} {% endwith %} {% empty %} {% endfor %} {% if not init %} {% endif %}
{% trans "Last change" %} {% trans "Severity" %} {% trans "Hostname" %} {% trans "Description" %} {% trans "Ack" %}{% trans "Events" %}
{{ last_change|date:"H:i:s" }}
{{ last_change|date:"SHORT_DATE_FORMAT" }}
{{ alert.priority|mon_severity|title }}
{{ last_change|mon_get_age }}
{% if dc_bound %} {% endif %}{{ alert.hostname }} {{ alert.desc }}{% if alert.comments %} {% endif %}{% if alert.url %} {% endif %} {% if alert.events %}{% for event in alert.events %} {{ event.clock|dttimestamp:TZ|date:"LONG_DATETIME_FORMAT" }} - {{ event.status }} - {% trans "Ack" %}:  {% if event.acknowledges %}{% for ack in event.acknowledges %}
  …{{ ack.user }}: {{ ack.message }}{% endfor %}{% endif %}

{% endfor %}{% endif %}
{% if error %}

{{ error }}

{% else %}

{% if not init %}{% trans "No alerts found." %}{% endif %}

{% endif %}
{% trans "Total" %}: {{ alerts|length }} 
{% endwith %}