1 {% extends "base.html" %}
7 {% for album in object_list %}
9 {% if album.get_main_image %}
10 <a href="{{ album.slug }}/"><img src="{{ album.get_main_image.url|thumbnail:"width=250" }}" alt="{{ album.get_main_image.caption }}" /></a>
12 <h2><a href="{{ album.slug }}/">{{ album.name }}</a></h2>
13 {% if album.caption %}
14 <p>{{ album.caption }}</h2>
19 <p class="paginator">Pages:
20 {% if page_obj.has_previous %}
21 <a href="?page={{ page_obj.previous_page_number }}">Previous</a> |
23 {% for paginator_page in paginator.page_range %}
24 {% if forloop.first %}
28 {% ifequal paginator_page page %}
31 <a href="?page={{ paginator_page }}">{{ paginator_page }}</a>
34 {% if page_obj.has_next %}
35 | <a href="?page={{ page_obj.next_page_number }}">Next</a>
40 <p>There are no photo albums available.</p>