annotate mysite/templates/band/photos.html @ 40:25e00d1b99bf

Get rid of the project name 'mysite' from the source.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Feb 2012 19:09:57 -0600
parents efb2da0b5d10
children
rev   line source
bgneal@1 1 {% extends 'band/base.html' %}
bgneal@26 2 {% load url from future %}
bgneal@1 3 {% block title %}The Madeira | Photo Galleries{% endblock %}
bgneal@1 4 {% block custom_css %}
bgneal@26 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@26 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@40 21 <li><a href="{% url '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 %}