1 {% extends "base.html" %}
5 {% block title %}Photos{% endblock %}
9 {% for album in object_list %}
11 <div class="album lastalbum">
15 {% if album.get_main_image %}
16 <a href="{{ album.slug }}/"><img src="{{ album.get_main_image.url|thumbnail:"width=250" }}" alt="{{ album.get_main_image.caption }}" /></a>
18 <h2><a href="{{ album.slug }}/">{{ album.name }}</a></h2>
19 {% if album.caption %}
20 <p>{{ album.caption }}</p>
22 <div style="clear: both;"> </div>
26 <p class="paginator">Pages:
27 {% if page_obj.has_previous %}
28 <a href="?page={{ page_obj.previous_page_number }}">Previous</a> |
30 {% for paginator_page in paginator.page_range %}
31 {% if forloop.first %}
35 {% ifequal paginator_page page_obj.number %}
38 <a href="?page={{ paginator_page }}">{{ paginator_page }}</a>
41 {% if page_obj.has_next %}
42 | <a href="?page={{ page_obj.next_page_number }}">Next</a>
47 <p>There are no photo albums available.</p>