From 38391b74bc6269e4b969b0b0e9223c1b7d0a7cf4 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 1 Jun 2007 04:34:35 -0400 Subject: fixed gallery thumbs display --- bn_django/photos/templates/photos/gallery_detail.html | 8 +++++--- static/style/default.css | 11 +++++++++-- 2 files changed, 14 insertions(+), 5 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 %}
{% if object.photo_set.count %} - + {% for item in object.photo_set.all %} - + {% cycle , , ,  %} + - {% endfor %} +
{{ item.title }} +
{% else %}

There are no photos in this gallery. If you just uploaded a batch diff --git a/static/style/default.css b/static/style/default.css index 691dae8..1436897 100644 --- a/static/style/default.css +++ b/static/style/default.css @@ -194,8 +194,15 @@ pre.large { .right_stuff img { border: 1px solid black; } .photo_thumb { - width: 160px; - height: 180px; } + width: 150px; + height: 112px; + padding: 0px; + margin: 0px; + border: none; + text-align: center; } +table.thumbs tr { + padding: 0px; + margin: 0px; } table.listing { width: 100%; border-spacing: 0px; -- cgit v1.2.3