comparison mysite/templates/band/photos.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 25e00d1b99bf
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 {% block title %}The Madeira | Photo Galleries{% endblock %} 3 {% block title %}The Madeira | Photo Galleries{% endblock %}
3 {% block custom_css %} 4 {% block custom_css %}
4 <link rel="stylesheet" href="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" /> 5 <link rel="stylesheet" href="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
5 {% endblock %} 6 {% endblock %}
6 {% block custom_js %} 7 {% block custom_js %}
7 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 8 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
8 <script type="text/javascript" src="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script> 9 <script type="text/javascript" src="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
9 <script type="text/javascript"> 10 <script type="text/javascript">
10 $(function() { 11 $(function() {
11 $('a.fancybox').fancybox(); 12 $('a.fancybox').fancybox();
12 }); 13 });
13 </script> 14 </script>
15 {% block content %} 16 {% block content %}
16 <h1>Madeira Photo Galleries</h1> 17 <h1>Madeira Photo Galleries</h1>
17 {% if galleries %} 18 {% if galleries %}
18 <ul> 19 <ul>
19 {% for gallery in galleries %} 20 {% for gallery in galleries %}
20 <li><a href="{% url mysite.band.views.photo_detail gallery.id %}">{{ gallery.title }}</a></li> 21 <li><a href="{% url 'mysite.band.views.photo_detail' gallery.id %}">{{ gallery.title }}</a></li>
21 {% endfor %} 22 {% endfor %}
22 </ul> 23 </ul>
23 {% else %} 24 {% else %}
24 No photo galleries available at this time. 25 No photo galleries available at this time.
25 {% endif %} 26 {% endif %}