comparison mysite/templates/band/photo_detail.html @ 24:ead7bd49c9e0 django1.3

Changes to support Django 1.3
author Brian Neal <bgneal@gmail.com>
date Tue, 29 Mar 2011 01:51:10 +0000
parents 1b6b3e38e918
children f61db5f82549
comparison
equal deleted inserted replaced
23:6ad81d6a86bf 24:ead7bd49c9e0
1 {% extends 'band/base.html' %} 1 {% extends 'band/base.html' %}
2 {% load url from future %}
2 {% load markup %} 3 {% load markup %}
3 {% block title %}The Madeira | Photos: {{ gallery.title }}{% endblock %} 4 {% block title %}The Madeira | Photos: {{ gallery.title }}{% endblock %}
4 {% block custom_css %} 5 {% block custom_css %}
5 <link rel="stylesheet" href="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" /> 6 <link rel="stylesheet" href="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
6 {% endblock %} 7 {% endblock %}
7 {% block custom_js %} 8 {% block custom_js %}
8 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 9 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
9 <script type="text/javascript" src="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script> 10 <script type="text/javascript" src="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
10 <script type="text/javascript"> 11 <script type="text/javascript">
11 $(function() { 12 $(function() {
12 $('a.fancybox').fancybox(); 13 $('a.fancybox').fancybox();
13 }); 14 });
14 </script> 15 </script>
21 {% for photo in gallery.photos.all %} 22 {% for photo in gallery.photos.all %}
22 <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery"> 23 <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery">
23 <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>
24 {% endfor %} 25 {% endfor %}
25 </div> 26 </div>
26 <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>
27 28
28 {% endblock %} 29 {% endblock %}