{% 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 %}
{% if not perms.gallery.view %} {% if show_public %} {% trans "Hide public albums" %} {% else %} {% trans "Show public albums" %} {% endif %} | {% endif %}
{% endif %}
{% if q %} {% blocktrans with query=q %}Results for {{ query }}{% endblocktrans %} | {% trans "See all albums" %} {% else %} {% for date in date_list reversed %} {{ date.year }} {% if not forloop.last %} | {% endif %} {% endfor %} {% endif %}
{% for album in latest %} {% ifchanged album.date.year %}

{{ album.date.year }}

{% endifchanged %}

{{ 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 %} {% if q %}

{% trans "Sorry, no albums match your query." %}

{% else %}

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

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