{% extends "base.html" %} {% load i18n %} {% load static from staticfiles %} {% block extrahead %} {% endblock %} {% block title %}{{ block.super }} - {{ title }}{% endblock %} {% block content %}

{{ title }}

{% if user.is_authenticated and not perms.gallery.view %}
{% if show_public %} {% trans "Hide public albums" %} {% else %} {% trans "Show public albums" %} {% endif %}
{% endif %}
{# next_year has the "previous" class and vice-versa because album ordering is reversed #} {% if next_year %} {% endif %} {{ title }} {% if previous_year %} {% endif %}

{{ year.year }}

{% for album in album_list %}

{{ album.display_name }} {% blocktrans count album.photos_count as num_photos %}one photo{% plural %}{{ num_photos }} photos{% endblocktrans %} {{ album.date }} {% trans album.category %}

{% spaceless %}
{% for photo in album.preview %} {{ photo }} {% empty %}

{% trans "Sorry, you aren't authorized to view any photos in this album." %}

{% endfor %}
{% endspaceless %} {% empty %}

{% trans "Sorry, you aren't authorized to view any albums." %}

{% endfor %} {% if is_paginated %}
{% if page_obj.has_previous %} {% endif %} {{ page_obj.number }} / {{ paginator.num_pages }} {% if page_obj.has_next %} {% endif %}
{% endif %} {% endblock %}