{% extends "base.html" %} {% from "_icons.html" import icon %} {% set title = tr(album, 'title') %} {% set description = tr(album, 'description') or t('gallery.intro') %} {% set cv = album.cover() %} {% set og_image = abs_url(media_url(cv.web)) if cv else '' %} {% block crumbs %}/{{ t('nav.gallery') }}/{{ tr(album, 'title') }}{% endblock %} {% block lead %}

{% if tr(album, 'description') %}{{ tr(album, 'description') }} · {% endif %}{{ photos|length }} {{ t('gallery.photos') }}

{% endblock %} {% block content %}
{% if photos %}
{% for p in photos %} {% if p.kind == 'video' %} {% if p.thumb %}{{ tr(p, 'caption') or 'Video' }}{% else %}
{% endif %} {{ icon('play') }}
{% else %} {{ tr(p, 'caption') or tr(album, 'title') ~ ' – ' ~ loop.index }} {% endif %} {% endfor %}
{% else %}

{{ t('gallery.empty') }}

{% endif %}

← {{ t('gallery.back') }}

{% endblock %} {% block after %}{% include "_lightbox.html" %}{% endblock %}