{% block content %}
{% if object_list %}
<h1>{{ object_list.0.album.name }}</h1>
+ {% if object_list.0.album.caption %}
<div class="album_caption">{{ object_list.0.album.caption }}</div>
+ {% endif %}
{% for photo in object_list %}
<div class="photo">
<a href="{{ photo.id }}/"><img src='{{ photo.image.url|thumbnail:"width=250" }}' alt="{{ photo.caption }}" /></a>
- <p>{{ photo.caption }}</h2>
+ {% if photo.caption %}
+ <p>{{ photo.caption }}</p>
+ {% endif %}
</div>
{% endfor %}
<div style="clear: both;"> </div>