{% load humanize %}{% load i18n %}{% load utilities %} {% with announcement.id|uuid as uuid %}
{% if announcement.event_date %} {{ announcement.event_date|naturalday|title }}: {% endif %} {{ announcement.preview }}
{% if announcement.content %}
{% trans "Open" as button_text %} {% include 'snippets/toggle/open_button.html' with text=button_text controls_text="announcement" class="is-small" controls_uid=uuid icon_with_text="arrow-down" %} {% trans "Close" as button_text %} {% include 'snippets/toggle/close_button.html' with text=button_text controls_text="announcement" class="is-small" controls_uid=uuid icon_with_text="arrow-up" %}
{% endif %}
{% if announcement.content %}
{{ announcement.content|safe }}
{% endif %}

{% blocktrans with user_path=announcement.user.local_path username=announcement.user.display_name %}Posted by {{ username }}{% endblocktrans %}

{% if not admin_mode %} · {% trans "Dismiss message" %} {% endif %}
{% endwith %}