Lots of changes to fix lots of bugs and add comments to blog
[sommitrealweird.git] / sommitrealweird / photo / templates / photo / album_index.html
index 33cbbc63cce2f4325ffbb82632c7299d6a3c3a95..beaeacbd6300333795079ec794917138bc0528dc 100644 (file)
@@ -1,18 +1,25 @@
 {% extends "base.html" %}
 {% load thumbnail %}
-{% load markup %}
+{% load xhtml11rst %}
+
+{% block title %}Photos{% endblock %}
 
 {% 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 %}
                 <h2><a href="{{ album.slug }}/">{{ album.name }}</a></h2>
                 {% if album.caption %}
-                <p>{{ album.caption }}</h2>
+                <p>{{ album.caption }}</p>
                 {% endif %}
+                <div style="clear: both;">&nbsp;</div>
             </div>
         {% endfor %}
         {% if is_paginated %}