blob: dd8460fafc23c92e8a4431d96179a4360420aa9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{% extends "photologue/root.html" %}
{% block title %}Galleries for {{ month|date:"F Y" }}{% endblock %}
{% block page-header %}Galleries for {{ month|date:"F Y" }}{% endblock %}
{% block content %}
{% if object_list %}
{% for gallery in object_list %}
<div class="photo-gallery">
<h2>{{ gallery.title }}</h2>
{% for photo in gallery.sample|slice:sample_size %}
<div class="gallery-photo">
<a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
</div>
{% endfor %}
</div>
{% endfor %}
{% else %}
<p>No galleries were found.</p>
{% endif %}
<p><a href="{% url pl-gallery-list 1 %}">View all galleries.</a></p>
{% endblock %}
|