{% extends '../layouts/index.html' %} {% block content %}

#{{ incident.id }} - {{ incident.title }}

{% if incident.created_at is not none %}

Reported by {{ incident.created_by.full_name }},

{% endif %}

{% include "../layouts/partials/priority_pill.html" with priority=incident.priority %} {% include "../layouts/partials/status_pill.html" with status=incident.status IncidentStatus=IncidentStatus only %}

{% if perms.incidents.change_incidents %} Edit {% endif %}
{% component "card" card_title="Incident Information" id="incident-information" %} {% fill "card_content" %}
Description
{{ incident.description|urlize|linebreaksbr }}
Priority
{{ incident.priority }}
Environment
{% include "../layouts/partials/environment_pill.html" with environment=incident.environment only %}
{% if incident.component is not none %}
Group
{{ incident.component.group }}
{% endif %}
{% endfill %} {% endcomponent %} {% component "card" card_title="Timeline" id="incident-timeline" %} {% fill "card_content" %} {% include "../layouts/partials/incident_timeline.html" with incident_updates=incident.incidentupdate_set.all %} {% endfill %} {% endcomponent %} {% component "card" card_title="Metrics" id="incident-metrics" %} {% fill "card_title" %}

{{ card_title }}

{% if user.is_authenticated %} Edit Key events {% endif %}
{% endfill %} {% fill "card_content" %}
{% include "../layouts/partials/incident_metrics.html" with metrics=incident.metrics.all %}
{% endfill %} {% endcomponent %}
{% component "card" card_title="External resources" id="incident-integrations" %} {% fill "card_content" %} {% if not incident.conversation and not incident.postmortem_for and pagerduty_incident_set.count == 0 %}

No external resources for this incident.

{% else %} {% endif %} {% endfill %} {% endcomponent %} {% component "card" card_title="Key participants" id="incident-contacts" %} {% fill "card_content" %} {% for role in incident.roles_set.all %} {% include "../layouts/partials/user_card.html" with user=role.user title=role.role_type.name only %} {% include "../layouts/partials/user_tooltip.html" with user=role.user only %} {% endfor %} {% endfill %} {% endcomponent %} {% component "card" card_title="Impacts" id="incident-impacts" %} {% fill "card_content" %} {% for impact in incident.impacts.all|dictsort:"impact_level.value" %}
  • {{ impact.impact_type.emoji }}

    {{ impact.impact_type }}

    {{ impact.impact_level.value_label }}: {{ impact.impact_level.name }}

{% empty %}

No impacts defined at the moment.

{% endfor %} {% endfill %} {% endcomponent %} {% if incident.incident_cost_set.count %} {% load humanize %} {% component "card" card_title="Cost Estimates" id="incident-cost-estimates" %} {% fill "card_content" %}
    {% for cost in incident.incident_cost_set.all %}
  • {{ cost.cost_type.name }}: {{ cost.amount|intcomma }} {{ cost.currency }}
  • {% endfor %}
{% endfill %} {% endcomponent %} {% endif %}
{% include "../layouts/partials/priority_icon.html" %}
{% endblock content %}