{% extends "core/base.jinja" %} {% from 'core/macros.jinja' import paginate_alpine %} {%- block additional_css -%} {%- endblock -%} {%- block additional_js -%} {%- endblock -%} {% block title %} {% trans %}SAS{% endtrans %} {% endblock %} {% from "sas/macros.jinja" import display_album, print_path %} {% block content %} SAS / {{ print_path(album.parent) }} {{ album.get_display_name() }} {% set is_sas_admin = user.can_edit(album) %} {% set start = timezone.now() %} {% if is_sas_admin %}
{% csrf_token %}

{{ album.get_display_name() }}

{% if clipboard %}
{% trans %}Clipboard: {% endtrans %}
{% endif %} {% endif %} {% if children_albums|length > 0 %}

{% trans %}Albums{% endtrans %}

{% for a in children_albums %} {{ display_album(a, is_sas_admin) }} {% endfor %}

{% endif %}

{% trans %}Pictures{% endtrans %}

{{ paginate_alpine("page", "nbPages()") }}
{% if is_sas_admin %}
{% csrf_token %}
{{ form.as_p() }}
{% endif %}

{% trans %}Template generation time: {% endtrans %} {{ timezone.now() - start }}

{% endblock %} {% block script %} {{ super() }} {% endblock %}