diff options
Diffstat (limited to 'bn_django/photos')
-rw-r--r-- | bn_django/photos/templates/photos/gallery_detail.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bn_django/photos/templates/photos/gallery_detail.html b/bn_django/photos/templates/photos/gallery_detail.html index 318091b..da374b1 100644 --- a/bn_django/photos/templates/photos/gallery_detail.html +++ b/bn_django/photos/templates/photos/gallery_detail.html @@ -19,17 +19,19 @@ Gallery: {{ object.title }} {% if object %} <br /> {% if object.photo_set.count %} - +<table width="100%" class="thumbs"> {% for item in object.photo_set.all %} -<span class="photo_thumb"> + {% cycle <tr/>, , , %} + <td class="photo_thumb"> <a href="../detail/{{ item.id }}"> <img src="{{ item.thumburl }}" alt="{{ item.title }}" /> <!--<a href="../detail/{{ item.id }}" class="caption">{{ item.title }}</a> </a> --> + </td> -</span> {% endfor %} +</table> {% else %} <p>There are no photos in this gallery. If you just uploaded a batch |