{% extends "core/base.jinja" %} {% block title %} {% trans %}SAS{% endtrans %} {% endblock %} {% macro display_album(a) %} {% if a.is_moderated %}
{% if a.file %} {% trans %}preview{% endtrans %} {% elif a.children.filter(is_folder=False, is_moderated=True).exists() %} {% trans %}preview{% endtrans %} {% else %} {% trans %}preview{% endtrans %} {% endif %}
{{ a.name }}
{% elif user.is_in_group(settings.SITH_GROUP_SAS_ADMIN_ID) %}

Moderate or Delete

{{ a.name }}
{% endif %} {% endmacro %} {% block content %}

{% trans %}SAS{% endtrans %}


{% trans %}Latest albums{% endtrans %}

{% for a in latest %} {{ display_album(a) }} {% endfor %}

{% trans %}All categories{% endtrans %}

{% for a in categories %} {{ display_album(a) }} {% endfor %}
{% if user.is_in_group(settings.SITH_GROUP_SAS_ADMIN_ID) %}
{% csrf_token %} {{ form.non_field_errors() }}

{{ form.album_name.errors }} {{ form.album_name }}

{% endif %} {% endblock %}