{% load template_utils %}

Endpoints

{% for endpoint_type, endpoints in incident.metadata.endpoints.items %} {% if endpoints %} {% with endpoint_table=incident_details_tables|get_item:endpoint_type %} {% if endpoint_table %}
{{ endpoint_type }}
{% for column in endpoint_table %}
{{ column.name }}
{% endfor %}
History
{% for endpoint in endpoints %}
{% for event in endpoint.events %} {% with first_event=forloop.first %} {% for column in endpoint_table %} {% if first_event %}
{% include column.cell_template with event=event %}
{% if forloop.last %} {% if endpoint.events|length > 1 %}
{% if endpoint.has_more_events %}
{% endif %}
{% else %}
{% endif %} {% endif %} {% else %} {% if not column.is_endpoint_column %}
{% include column.cell_template with event=event %}
{% else %}
{% endif %} {% if forloop.last %}
{% endif %} {% endif %} {% endfor %} {% endwith %} {% endfor %}
{% endfor %}
{% endif %} {% endwith %} {% endif %} {% endfor %}