aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-06-01 04:34:35 -0400
committerbnewbold <bnewbold@manus.(none)>2007-06-01 04:34:35 -0400
commit38391b74bc6269e4b969b0b0e9223c1b7d0a7cf4 (patch)
treef340ee6db2eee4bd8dbbe43e4a25b3212109df4b
parent4f161df1591959b6052ba966addfce88f84d3ab2 (diff)
downloadbnewnet-38391b74bc6269e4b969b0b0e9223c1b7d0a7cf4.tar.gz
bnewnet-38391b74bc6269e4b969b0b0e9223c1b7d0a7cf4.zip
fixed gallery thumbs display
-rw-r--r--bn_django/photos/templates/photos/gallery_detail.html8
-rw-r--r--static/style/default.css11
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 %}
<br />
{% if object.photo_set.count %}
-
+<table width="100%" class="thumbs">
{% for item in object.photo_set.all %}
-<span class="photo_thumb">
+ {% cycle <tr/>,&nbsp;,&nbsp;,&nbsp; %}
+ <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
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;