{% extends 'base.html.twig' %} {% block title %}{{ collection.title }}{% endblock %} {% block footer %}{% endblock %} {% block styles %}{{ parent() }}{{ encore_entry_link_tags('collect') }}{% endblock %} {% block body %} {% set firstFile = files|length ? files[0] : null %} {% set firstIsImage = firstFile and firstFile.image %} {% set firstIsVideo = firstFile and firstFile.video %}
{% if firstIsImage %} {{ firstFile.originalFilename }} {% elseif firstIsVideo %} {% elseif firstFile %}
{{ firstFile.originalFilename }} {{ 'collect.download'|trans }}
{% else %}

{{ 'collect.addFirst'|trans }}

{% endif %}
{% if files|length %}
{% for f in files %} {% set previewUrl = (f.image or f.video) ? path('app_collect_file_preview', {id: collection.id, fileId: f.id}) : '' %} {% set thumbUrl = f.image ? path('app_collect_file_thumb', {id: collection.id, fileId: f.id}) : '' %} {% endfor %}
{% endif %}
{# Lightbox (same UX as guest gallery) #} {# Share album modal (cover + QR + copy) #} {# Access & sharing #} {# Settings modal (moved to body by collect.ts so backdrop does not block clicks) #} {% if trash|length %} {% endif %} {% endblock %} {% block javascripts %}{{ parent() }}{{ encore_entry_script_tags('collect') }}{% endblock %}