Small photo fixes
[sommitrealweird.git] / sommitrealweird / photo / templates / photo / photo.html
index 513cd73418004c09e5a6e5f7f38609f52bbf2337..b62dc07f1eea1af3b62adee6c720740df4e02b94 100644 (file)
@@ -4,7 +4,9 @@
 {% block content %}
     <div class="single_photo">
         <a href="{{ object.image.url }}"><img src='{{ object.image.url|thumbnail:"width=500" }}' alt="{{ object.caption }}" /></a>
-        <p>{{ object.caption }}</h2>
+        {% if object.caption %}
+        <p>{{ object.caption }}</p>
+        {% endif %}
     </div>
     <div style="clear: both;">&nbsp;</div>
     {% if prev_photo or next_photo%}