annotate mysite/templates/band/photo_detail.html @ 26:efb2da0b5d10
Merging the django1.3 branch into trunk.
author |
Brian Neal <bgneal@gmail.com> |
date |
Wed, 30 Mar 2011 00:16:32 +0000 |
parents |
1b6b3e38e918 |
children |
f61db5f82549 |
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@1
|
22 {% for photo in gallery.photos.all %}
|
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 %}
|