{% 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 %}
{% if previous_year %} {% endif %} {{ title }} {% if next_year %} {% endif %}

{{ year.year }}

{% for album in album_list reversed %}

{{ 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 %} {% endblock %}