]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/photo/templates/photo/photo_detail.html
Make photo albums work
[sommitrealweird.git] / sommitrealweird / photo / templates / photo / photo_detail.html
1 {% extends "base.html" %}
2 {% load thumbnail %}
3
4 {% block title %}Photos - {{ object.album.title }} - {{ object.caption }}{% endblock %}
5
6 {% block content %}
7     <div class="single_photo">
8         <a href="{{ object.image.url }}"><img src='{{ object.image.url|thumbnail:"width=500" }}' alt="{{ object.caption }}" /></a>
9         {% if object.caption %}
10         <p>{{ object.caption }}</p>
11         {% endif %}
12     </div>
13     <div style="clear: both;">&nbsp;</div>
14     {% if prev_photo or next_photo%}
15         <p class="paginator">
16             {% if prev_photo %}
17                 <a href="/photo/{{ object.album.slug }}/{{ prev_photo.id }}/">Previous</a>
18             {% endif %}
19             {% if next_photo %}
20                 <a href="/photo/{{ object.album.slug }}/{{ next_photo.id }}/">Next</a>
21             {% endif %}
22         </p>
23     {% endif %}
24 {% endblock %}