513cd73418004c09e5a6e5f7f38609f52bbf2337
[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         <p>{{ object.caption }}</h2>
8     </div>
9     <div style="clear: both;">&nbsp;</div>
10     {% if prev_photo or next_photo%}
11         <p class="paginator">
12             {% if prev_photo %}
13                 <a href="/photo/{{ object.album.slug }}/{{ prev_photo.id }}/">Previous</a>
14             {% endif %}
15             {% if next_photo %}
16                 <a href="/photo/{{ object.album.slug }}/{{ next_photo.id }}/">Next</a>
17             {% endif %}
18         </p>
19     {% endif %}
20 {% endblock %}