{% extends "django_datawatch/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block django_datawatch %}

{% trans "Filter" %}

{% bootstrap_form form layout='horizontal' %} {% buttons %}
{% trans "Filter" as trans_filter %} {% bootstrap_button trans_filter button_type="submit" button_class="btn-primary" %}
{% endbuttons %}
{% regroup results by get_status_display as status_list %}
{% if not status_list %}

{% trans "There is nothing to see here. Everything is fine!" %}

{% else %} {% widthratio 12 status_list|length 1 as size %} {% for status in status_list %} {% for status_definition in results.get_stats %} {% if status.grouper == status_definition.status_name %}
{{ status_definition.status_name }}

{{ status_definition.amount }}

{% endif %} {% endfor %} {% endfor %} {% endif %}
{% for status in status_list %}

{{ status.grouper }}

{% for result in status.list %} {% endfor %}
{{ result.get_status_display }} {% if result.is_acknowledged %}
{% blocktrans with date=result.acknowledged_until|date %}Acknowledged until {{ date }}{% endblocktrans %} {% endif %}
{{ result.get_check_instance.get_title }} {{ result.payload_description }} {{ result.get_formatted_data }}
{% endfor %}
{% endblock %}