{#- One message under the page's heading. It stays until it is closed or the page changes, so nobody misses it for reading slowly, and a long word, such as a file's name or a key, breaks rather than running past its edge. The text keeps the page's own colour on a tint, so it reads as easily. -#} {% import "adminsite/_icons.html" as icons %} {% set problem = message.kind == 'error' %}
{{- icons.icon("circle-alert" if problem else "circle-check", 20) -}}

{%- if message.html %}{{ message.text | safe }}{% else %}{{ message.text }}{% endif -%} {% if message.link %} {{ message.link_text or _('Open') }}{% endif %}

{% if message.to_copy %}
{{ message.to_copy }}
{% endif %}