{#- Body of pages/announcement.html: an article like a news record, with the source above the title, a card linking to the author's site after the text, attachments and the fallback note. -#} {% from "blocks/picture.html" import picture %} {% set a = announcement %} {% set mandatory = a.mandatory is defined and a.mandatory %} {% set src_url = a.source_url if (a.source_url is defined and a.source_url) else '' %} {% set ann_list_url = announcements.url if (announcements is defined and announcements and announcements.url is defined and announcements.url) else site.url ~ 'announcements/' %} {% set crumbs_title = a.title %}
{% include "blocks/breadcrumbs.html" %}

{% set icon = 'announcements' %}{% set icon_cls = '' %}{% include "blocks/icon.html" %}{{ t('announcements.one') }} {% if mandatory %}{{ t('announcements.mandatory') }}{% endif %} {% if a.date %}{% endif %}

{{ a.title }}

{% if a.summary %}

{{ a.summary }}

{% endif %} {% if a.source %}

{% set icon = 'authority' %}{% set icon_cls = '' %}{% include "blocks/icon.html" %}{{ t('announcements.from') }}: {% if src_url %}{{ a.source }}{% else %}{{ a.source }}{% endif %}

{% endif %}
{% if a.cover %}
{{ picture(a.cover, '(min-width: 68rem) 64rem, 100vw', true) }}
{% endif %}
{% set r = a %}{% include "blocks/fallback-note.html" %} {% if a.body %}
{{ a.body|safe }}
{% endif %} {% if a.files %}

{{ t('record.files') }}

{% set files = a.files %}{% set files_primary = false %}{% include "blocks/file-list.html" %} {% endif %} {% if a.source and src_url != site.url %} {% endif %}

{% set icon = 'back' %}{% set icon_cls = '' %}{% include "blocks/icon.html" %}{{ t('announcements.back') }}