{% extends 'admin/shell.html.twig' %} {% set nav = 'media' %} {% block title %}Mediathek{% endblock %} {% block scripts %}{% endblock %} {% block heading %}Mediathek{% endblock %} {% block lead %}Alle Bilder, neueste zuerst. Beim Hochladen wird jedes Bild in WebP umgewandelt und in mehreren Breiten abgelegt; die Seite liefert dann die passende aus.{% endblock %} {% block content %} {% if is_granted('ROLE_EDITOR') %}
{# A drop area rather than the browser's file widget. The input stays a real file input and stays focusable, so the form works by keyboard and without JavaScript; the script only adds dragging and the list of chosen files. No "required": the input is visually hidden, and a browser cannot show its validation bubble on something invisible. The server refuses an empty upload with a readable message instead. #}

Noch keine Datei gewählt.

JPEG, PNG oder WebP, höchstens 8 MB je Bild. Mehrere Dateien sind möglich; das Hosting kann ein kleineres Limit setzen.

{% endif %}

{{ archived ? 'Alle Bilder einschließlich Archiv' : 'Bilder' }} {{ library.total }}

{% if archived %}Archivierte ausblenden{% else %}Archivierte anzeigen{% endif %} {% if library.pages > 1 %} · Seite {{ library.page }} von {{ library.pages }}{% endif %}
{% if library.items is empty %}

{{ archived ? 'Keine Bilder vorhanden.' : 'Keine Bilder in der Mediathek.' }}

{{ is_granted('ROLE_EDITOR') ? 'Lade oben dein erstes Bild hoch.' : 'Ein Redakteur kann Bilder hochladen.' }}

{% else %} {% if library.pages > 1 %} {% endif %} {% endif %}

KantSites · Arbeitsstand

{% endblock %}