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