Mercurial > public > madeira
comparison mysite/templates/band/photo_detail.html @ 29:f61db5f82549
When displaying photos, display by id, ascending.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 05 Apr 2011 23:05:55 +0000 |
parents | efb2da0b5d10 |
children | 25e00d1b99bf |
comparison
equal
deleted
inserted
replaced
28:a404f93a68d3 | 29:f61db5f82549 |
---|---|
17 {% block content %} | 17 {% block content %} |
18 <h1>Madeira Photos: {{ gallery.title }}</h1> | 18 <h1>Madeira Photos: {{ gallery.title }}</h1> |
19 {{ gallery.description|textile }} | 19 {{ gallery.description|textile }} |
20 | 20 |
21 <div class="madeira-photo-list"> | 21 <div class="madeira-photo-list"> |
22 {% for photo in gallery.photos.all %} | 22 {% for photo in photos %} |
23 <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery"> | 23 <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery"> |
24 <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a> | 24 <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a> |
25 {% endfor %} | 25 {% endfor %} |
26 </div> | 26 </div> |
27 <center><a href="{% url 'mysite.band.views.photos_index' %}">Photo gallery index</a></center> | 27 <center><a href="{% url 'mysite.band.views.photos_index' %}">Photo gallery index</a></center> |