1 {% extends "base.html" %}
7 {% for album in object_list %}
9 <div class="album lastalbum">
13 {% if album.get_main_image %}
14 <a href="{{ album.slug }}/"><img src="{{ album.get_main_image.url|thumbnail:"width=250" }}" alt="{{ album.get_main_image.caption }}" /></a>
16 <h2><a href="{{ album.slug }}/">{{ album.name }}</a></h2>
17 {% if album.caption %}
18 <p>{{ album.caption }}</h2>
20 <div style="clear: both;"> </div>
24 <p class="paginator">Pages:
25 {% if page_obj.has_previous %}
26 <a href="?page={{ page_obj.previous_page_number }}">Previous</a> |
28 {% for paginator_page in paginator.page_range %}
29 {% if forloop.first %}
33 {% ifequal paginator_page page %}
36 <a href="?page={{ paginator_page }}">{{ paginator_page }}</a>
39 {% if page_obj.has_next %}
40 | <a href="?page={{ page_obj.next_page_number }}">Next</a>
45 <p>There are no photo albums available.</p>