Small photo fixes
[sommitrealweird.git] / sommitrealweird / photo / templates / photo / album_index.html
index 33cbbc63cce2f4325ffbb82632c7299d6a3c3a95..df9259e9807a807bc3e37cf9de4eea4eed835a5d 100644 (file)
@@ -5,7 +5,11 @@
 {% 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 %}
@@ -13,6 +17,7 @@
                 {% if album.caption %}
                 <p>{{ album.caption }}</h2>
                 {% endif %}
+                <div style="clear: both;">&nbsp;</div>
             </div>
         {% endfor %}
         {% if is_paginated %}