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