{% extends "base.html" %} {% set i = d.incident %} {% block title %}{{ i.summary }}{% endblock %} {% block content %}

{% if i.ticket %}P{{ i.priority }}{% endif %} {{ i.summary }}

State
{{ i.state }}{% if not i.ticket %} (timeline only, no ticket by design){% endif %}
Ticket
{% if i.known_ticket %}known condition: notes go to #{{ i.known_ticket }}{% if d.known_reason %} ({{ d.known_reason }}){% endif %} {% elif i.ticket_id %}#{{ i.ticket_id }} {% elif i.mode != 'live' %}shadow: recorded below, not sent{% else %}not sent yet{% endif %}
Key
{{ i.key }}
First seen
{{ i.first_seen | utc }}
Last seen
{{ i.last_seen | utc }}
{% if i.cleared_at %}
Cleared
{{ i.cleared_at | utc }}
{% endif %} {% for k, v in (d.facts.display or {}).items() %}
{{ k }}
{{ v }}
{% endfor %} {% if d.facts.escalation_reason and i.priority and i.priority < 3 %}
Why this priority
{{ d.facts.escalation_reason }}
{% endif %}
{% if d.seen_after_the_fact %}

Seen after the fact: Thor was away or blind while this happened and found it when it caught up.

{% endif %}

What happened

{% if d.events %}
    {% for e in d.events %}
  1. {{ e.text }}
  2. {% endfor %}
{% else %}

No events recorded.

{% endif %}

Also seen {{ d.symptoms | length }}

{% if d.symptoms %}
    {% for s in d.symptoms %}
  1. {{ s.summary }}
  2. {% endfor %}
{% else %}

Nothing attached.

{% endif %}

What Thor sent, or would have sent

{% if d.actions %}
{% for a in d.actions %} {% endfor %}
WhenActionModeStatusDetail
{{ a.created_at | utc('%m-%d %H:%M:%S') if a.created_at else (a.created | utc('%m-%d %H:%M:%S')) }} {{ a.kind | replace('_', ' ') }} {{ a.mode }} {{ a.status }}{% if a.ticket_id %} #{{ a.ticket_id }}{% endif %} {% if a.payload.priority %}P{{ a.payload.priority }} {% endif %}{{ a.payload.title or a.payload.symptoms | join(', ') if a.payload.symptoms else a.payload.title or '' }}{% if a.error %} {{ a.error }}{% endif %}
{% else %}

Nothing yet.

{% endif %}
{% if d.preview %}

Ticket text

{{ d.preview.title }}

{{ d.preview.description }}
{% endif %} {% endblock %}