annotate 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
rev   line source
bgneal@1 1 {% extends 'band/base.html' %}
bgneal@24 2 {% load url from future %}
bgneal@1 3 {% block title %}The Madeira | Photo Galleries{% endblock %}
bgneal@1 4 {% block custom_css %}
bgneal@24 5 <link rel="stylesheet" href="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
bgneal@1 6 {% endblock %}
bgneal@1 7 {% block custom_js %}
bgneal@18 8 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
bgneal@24 9 <script type="text/javascript" src="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
bgneal@18 10 <script type="text/javascript">
bgneal@18 11 $(function() {
bgneal@18 12 $('a.fancybox').fancybox();
bgneal@18 13 });
bgneal@18 14 </script>
bgneal@1 15 {% endblock %}
bgneal@1 16 {% block content %}
bgneal@1 17 <h1>Madeira Photo Galleries</h1>
bgneal@1 18 {% if galleries %}
bgneal@1 19 <ul>
bgneal@1 20 {% for gallery in galleries %}
bgneal@24 21 <li><a href="{% url 'mysite.band.views.photo_detail' gallery.id %}">{{ gallery.title }}</a></li>
bgneal@1 22 {% endfor %}
bgneal@1 23 </ul>
bgneal@1 24 {% else %}
bgneal@1 25 No photo galleries available at this time.
bgneal@1 26 {% endif %}
bgneal@1 27 {% if randomPhotos %}
bgneal@1 28 <div class="madeira-photo-list">
bgneal@1 29 <h2>Random Photos:</h2>
bgneal@1 30 {% for photo in randomPhotos %}
bgneal@18 31 <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery">
bgneal@1 32 <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a>
bgneal@1 33 {% endfor %}
bgneal@1 34 </div>
bgneal@1 35 {% endif %}
bgneal@1 36 {% endblock %}