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 {
{% block content %}
{% if object_list %}
{% for album in object_list %}
+ {% if forloop.last %}
+ <div class="album lastalbum">
+ {% else %}
<div class="album">
+ {% endif %}
{% if album.get_main_image %}
<a href="{{ album.slug }}/"><img src="{{ album.get_main_image.url|thumbnail:"width=250" }}" alt="{{ album.get_main_image.caption }}" /></a>
{% endif %}
{% if album.caption %}
<p>{{ album.caption }}</h2>
{% endif %}
+ <div style="clear: both;"> </div>
</div>
{% endfor %}
{% if is_paginated %}
{% block content %}
<div class="single_photo">
<a href="{{ object.image.url }}"><img src='{{ object.image.url|thumbnail:"width=500" }}' alt="{{ object.caption }}" /></a>
- <p>{{ object.caption }}</h2>
+ {% if object.caption %}
+ <p>{{ object.caption }}</p>
+ {% endif %}
</div>
<div style="clear: both;"> </div>
{% if prev_photo or next_photo%}