{% extends "core/base.jinja" %} {% from "core/macros.jinja" import paginate %} {%- block additional_css -%} {%- endblock -%} {% 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() }} {% set edit_mode = user.can_edit(album) %} {% set start = timezone.now() %} {% if edit_mode %}
{% csrf_token %}

{{ album.get_display_name() }}

{% if clipboard %}
{% trans %}Clipboard: {% endtrans %}
{% endif %} {% endif %} {% if album.children_albums.count() > 0 %}

{% trans %}Albums{% endtrans %}

{% for a in album.children_albums.order_by('-date') %} {% if a.can_be_viewed_by(user) %}
{% if not a.is_moderated %}
 
{% trans %}To be moderated{% endtrans %}
{% else %}
{{ a.name }}
{% endif %}
{% if edit_mode %} {% endif %}
{% endif %} {% endfor %}

{% endif %}

{% trans %}Pictures{% endtrans %}

{% if pictures | length != 0 %}
{% for p in pictures %} {% if p.can_be_viewed_by(user) %}
{% if not p.is_moderated %}
 
{% trans %}To be moderated{% endtrans %}
{% else %}
 
{% endif %}
{% if edit_mode %} {% endif %}
{% endif %} {% endfor %}
{% else %} {% trans %}This album does not contain any photos.{% endtrans %} {% endif %} {% if pictures.has_previous() or pictures.has_next() %}
{{ paginate(pictures, paginator) }}
{% endif %} {% if edit_mode %}
{% endif %} {% if user.is_in_group(settings.SITH_GROUP_SAS_ADMIN_ID) %}
{% csrf_token %}
{{ form.as_p() }}
{% endif %}

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

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