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