projects
/
sommitrealweird.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small photo fixes
[sommitrealweird.git]
/
sommitrealweird
/
photo
/
templates
/
photo
/
album_index.html
diff --git
a/sommitrealweird/photo/templates/photo/album_index.html
b/sommitrealweird/photo/templates/photo/album_index.html
index edfbc9ff3f58f1e92b03a616e0fe010a25034964..df9259e9807a807bc3e37cf9de4eea4eed835a5d 100644
(file)
--- a/
sommitrealweird/photo/templates/photo/album_index.html
+++ b/
sommitrealweird/photo/templates/photo/album_index.html
@@
-5,10
+5,19
@@
{% block content %}
{% if object_list %}
{% for album in object_list %}
{% block content %}
{% if object_list %}
{% for album in object_list %}
+ {% if forloop.last %}
+ <div class="album lastalbum">
+ {% else %}
<div class="album">
<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>
<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>
<h2><a href="{{ album.slug }}/">{{ album.name }}</a></h2>
+ {% if album.caption %}
<p>{{ album.caption }}</h2>
<p>{{ album.caption }}</h2>
+ {% endif %}
+ <div style="clear: both;"> </div>
</div>
{% endfor %}
{% if is_paginated %}
</div>
{% endfor %}
{% if is_paginated %}