Lots of changes to fix lots of bugs and add comments to blog
[sommitrealweird.git] / sommitrealweird / photo / templates / photo / photo.html
index 513cd73418004c09e5a6e5f7f38609f52bbf2337..5a0e04b761c9ffce5ffb0ac74ebb7acc2cfaa10f 100644 (file)
@@ -1,10 +1,14 @@
 {% extends "base.html" %}
 {% load thumbnail %}
 
+{% block title %}Photos - {{ object.album.title }} - {{ object.caption }}{% endblock %}
+
 {% 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%}