annotate mysite/templates/band/photo_detail.html @ 19:1b6b3e38e918

Fix path to fancybox css file.
author Brian Neal <bgneal@gmail.com>
date Wed, 08 Sep 2010 00:49:37 +0000
parents 10be1f4f121b
children ead7bd49c9e0
rev   line source
bgneal@1 1 {% extends 'band/base.html' %}
bgneal@1 2 {% load markup %}
bgneal@1 3 {% block title %}The Madeira | Photos: {{ gallery.title }}{% endblock %}
bgneal@1 4 {% block custom_css %}
bgneal@19 5 <link rel="stylesheet" href="{{ MEDIA_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@18 9 <script type="text/javascript" src="{{ MEDIA_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 Photos: {{ gallery.title }}</h1>
bgneal@1 18 {{ gallery.description|textile }}
bgneal@1 19
bgneal@1 20 <div class="madeira-photo-list">
bgneal@1 21 {% for photo in gallery.photos.all %}
bgneal@18 22 <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery">
bgneal@1 23 <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a>
bgneal@1 24 {% endfor %}
bgneal@1 25 </div>
bgneal@1 26 <center><a href="{% url mysite.band.views.photos_index %}">Photo gallery index</a></center>
bgneal@1 27
bgneal@1 28 {% endblock %}