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 <p>{{ album.caption }}</h2>
17 <p class="paginator">Pages:
18 {% if page_obj.has_previous %}
19 <a href="?page={{ page_obj.previous_page_number }}">Previous</a> |
21 {% for paginator_page in paginator.page_range %}
22 {% if forloop.first %}
26 {% ifequal paginator_page page %}
29 <a href="?page={{ paginator_page }}">{{ paginator_page }}</a>
32 {% if page_obj.has_next %}
33 | <a href="?page={{ page_obj.next_page_number }}">Next</a>
38 <p>There are no photo albums available.</p>