From bf5eb312070092ce660e85f271db579fc3d1edf9 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 29 Mar 2009 15:24:16 +0100 Subject: [PATCH] Small photo fixes --- media/style/main.css | 10 ++++++++++ sommitrealweird/photo/templates/photo/album_index.html | 5 +++++ sommitrealweird/photo/templates/photo/photo.html | 4 +++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/media/style/main.css b/media/style/main.css index 3efdb8e..74496af 100644 --- a/media/style/main.css +++ b/media/style/main.css @@ -150,6 +150,16 @@ body #page #footer p { div.album { margin-top: 2em; + border-bottom: 1px solid #afafaf; +} + +div.lastalbum { + border: 0; +} + +div.album img { + float: left; + padding-right: 1em; } div.album a img { diff --git a/sommitrealweird/photo/templates/photo/album_index.html b/sommitrealweird/photo/templates/photo/album_index.html index 33cbbc6..df9259e 100644 --- a/sommitrealweird/photo/templates/photo/album_index.html +++ b/sommitrealweird/photo/templates/photo/album_index.html @@ -5,7 +5,11 @@ {% block content %} {% if object_list %} {% for album in object_list %} + {% if forloop.last %} +
+ {% else %}
+ {% endif %} {% if album.get_main_image %} {{ album.get_main_image.caption }} {% endif %} @@ -13,6 +17,7 @@ {% if album.caption %}

{{ album.caption }} {% endif %} +

 
{% endfor %} {% if is_paginated %} diff --git a/sommitrealweird/photo/templates/photo/photo.html b/sommitrealweird/photo/templates/photo/photo.html index 513cd73..b62dc07 100644 --- a/sommitrealweird/photo/templates/photo/photo.html +++ b/sommitrealweird/photo/templates/photo/photo.html @@ -4,7 +4,9 @@ {% block content %}
{{ object.caption }} -

{{ object.caption }} + {% if object.caption %} +

{{ object.caption }}

+ {% endif %}
 
{% if prev_photo or next_photo%} -- 2.39.5