{% extends "reports/_layout.html" %} {% from "_macros.html" import icon %} {% set section = "reports" %} {% block title %}{{ report.title }} - {{ brand.name }}{% endblock %} {% block heading %}{{ report.title }}{% endblock %} {% block actions %} {{ icon("chevron-left", "icon--sm") }} All reports {% endblock %} {% block reports_content %}

Filed {%- if report.source == "schedule" %} by a schedule {%- elif report.source == "chat" %} from a chat {%- endif %} {%- if report.model_id %} ยท {{ report.model_id }}{% endif %}.

{% if report.error %}
{{ icon("warning", "alert__icon") }} This run did not finish cleanly. {{ report.error }}
{% endif %} {# `body_html` has been through services/markdown.py, which is the one path allowed to emit HTML here. A report is model output and hard rule 6 applies to it exactly as it does to a reply. #}
{{ body_html | safe }}
{# The same panel every library store uses. A finished piece of work is the thing somebody most wants to hand over. #}
{% include "library/_share.html" %}
{# Only the owner may delete. Sharing grants reading, so somebody a report was shared with sees the panel above saying so and no button here. #} {% if report.owner_id == user.id %}
{% endif %} {% endblock %}