{% extends "core/base.jinja" %} {% from "core/macros.jinja" import paginate %} {% block title %} {% trans %}SAS{% endtrans %} {% endblock %} {% macro print_path(file) %} {% if file and file.parent %} {{ print_path(file.parent) }} {{ file.get_display_name() }} > {% endif %} {% endmacro %} {% block content %} SAS > {{ print_path(album.parent) }} {{ album.get_display_name() }}

{{ album.get_display_name() }}

{% trans %}Edit{% endtrans %}
{% set start = timezone.now() %}
{% set edit_mode = user.can_edit(album) %} {% if edit_mode %}
{% csrf_token %}

| | |

{% if clipboard %}

{% trans %}Clipboard: {% endtrans %}

{% endif %} {% endif %}
{% for a in album.children_albums.order_by('-date') %}
{% if edit_mode %} {% endif %} {% if user.can_view(a) %}
{% if a.file %} {% trans %}preview{% endtrans %} {% else %} {% trans %}preview{% endtrans %} {% endif %}
{{ a.name }}
{% endif %}
{% endfor %}
{% for p in pictures %}
{% if edit_mode %} {% endif %} {% if user.can_view(p) %} {% endif %}
{% endfor %}

{{ paginate(pictures, paginator) }} {% if edit_mode %}
{% endif %}
{% csrf_token %} {{ form.as_p() }}

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

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