{% extends "htmx/incidents/incident_detail.html" %} {% load incident_extras %} {% block head %} {{ block.super }} {% endblock head %} {% block main %} {% if incident.metadata %}

{{ incident.metadata.description }}

{% else %}

{{ incident.description }}

{% endif %} {% block incident_detail %} {% if incident.metadata and incident.metadata.version == "v0a4" %}
Endpoints
{% for endpoint_type, endpoints in incident.metadata.endpoints.items %} {% if endpoints %}
{{ endpoint_type }}
{% for endpoint in endpoints %} {% with forloop.counter as endpoint_counter %} {% for event in endpoint.events %} {% if not forloop.first %}{% endif %} {% if not forloop.last %}{% endif %} {% endfor %} {% endwith %} {% endfor %}
Endpoint Name Alarm ID Status Init Time Clear Time Properties
{{ endpoint.name }}
{{ event.properties.id }} {{ event.is_up|yesno:"Up,Down" }} {{ event.init_time }} {{ event.clear_time }}
{% else %}
{{ endpoint_type }}
{% endif %} {% endfor %}
{% for endpoint_type, endpoints in incident.metadata.endpoints.items %} {% for endpoint in endpoints %} {% with forloop.counter as endpoint_counter %} {% for event in endpoint.events %} {% include "htmx/incidents/_incident_event_properties_modal.html" with endpoint_name=endpoint.name event=event endpoint_type=endpoint_type endpoint_counter=endpoint_counter event_counter=forloop.counter %} {% endfor %} {% endwith %} {% endfor %} {% endfor %} {% else %}

Cannot show additional information (mismatched metadata version)

{% endif %} {% endblock incident_detail %} {% endblock main %}