{# Render one AdminNotice as a full card. Used on the per-site dashboard. Expects in context: - notice: bragi.api.AdminNotice - site: the current Site (for CTA url_for resolution + dismiss/snooze URLs) #} {% set cta_href = url_for(notice.cta_endpoint, **notice.cta_endpoint_kwargs) if notice.cta_endpoint else None %}

{% if cta_href %}{{ notice.title }} {% else %}{{ notice.title }}{% endif %}

{% if notice.dismissible %}
{% endif %}
{% if notice.body %}

{{ notice.body }}

{% endif %} {% if cta_href and notice.cta_label %} {{ notice.cta_label }} → {% endif %}