From: Brett Parker Date: Sun, 29 Mar 2009 14:24:16 +0000 (+0100) Subject: Small photo fixes X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/commitdiff_plain/bf5eb312070092ce660e85f271db579fc3d1edf9?ds=sidebyside;hp=1729c1c46f2e28db125e2256ddbf9b971df53fbf Small photo fixes --- 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%}