{% extends shell('app') %} {% block title %}{{ _('Incidents') }}{% endblock %} {% block content %} {% set kinds = { 'model': _('Model failed'), 'slow_load': _('Slow load'), 'start': _('Did not start'), 'save': _('Not saved'), 'reshard': _('Not rewritten'), 'agent': _('Agent'), 'mining': _('Mining'), 'gpu': _('GPU flat out'), } %} {% set new = incidents | selectattr('reviewed_at', 'none') | list | length %}

{{ _('Incidents') }}{% if new %} {{ new }}{% endif %}

{% if new %}
{{ action_form.csrf_token }}
{% endif %}
{% if incidents %}
{% for i in incidents %} {% endfor %}
{{ _('What happened') }}
{{ pretty(i.at) }} {{ nodes_label([i.node]) or i.node }} {{ kinds.get(i.kind, i.kind) }} {{ i.email or '—' }}{% if i.reservation_id %}
#{{ i.reservation_id }}{% endif %}
{{ i.model or '—' }} {{ i.summary or '—' }} {% if i.detail %}
{{ _('Log') }}
{{ i.detail }}
{% endif %}
{% else %}

{{ _('None.') }}

{% endif %} {% endblock %}