annotate 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 |
rev |
line source |
bgneal@1
|
1 {% extends 'band/base.html' %}
|
bgneal@26
|
2 {% load url from future %}
|
bgneal@1
|
3 {% load markup %}
|
bgneal@1
|
4 {% block title %}The Madeira | Photos: {{ gallery.title }}{% endblock %}
|
bgneal@1
|
5 {% block custom_css %}
|
bgneal@26
|
6 <link rel="stylesheet" href="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
|
bgneal@1
|
7 {% endblock %}
|
bgneal@1
|
8 {% block custom_js %}
|
bgneal@18
|
9 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
bgneal@26
|
10 <script type="text/javascript" src="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
|
bgneal@18
|
11 <script type="text/javascript">
|
bgneal@18
|
12 $(function() {
|
bgneal@18
|
13 $('a.fancybox').fancybox();
|
bgneal@18
|
14 });
|
bgneal@18
|
15 </script>
|
bgneal@1
|
16 {% endblock %}
|
bgneal@1
|
17 {% block content %}
|
bgneal@1
|
18 <h1>Madeira Photos: {{ gallery.title }}</h1>
|
bgneal@1
|
19 {{ gallery.description|textile }}
|
bgneal@1
|
20
|
bgneal@1
|
21 <div class="madeira-photo-list">
|
bgneal@29
|
22 {% for photo in photos %}
|
bgneal@18
|
23 <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery">
|
bgneal@1
|
24 <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a>
|
bgneal@1
|
25 {% endfor %}
|
bgneal@1
|
26 </div>
|
bgneal@26
|
27 <center><a href="{% url 'mysite.band.views.photos_index' %}">Photo gallery index</a></center>
|
bgneal@1
|
28
|
bgneal@1
|
29 {% endblock %}
|