Mercurial > public > madeira
annotate mysite/templates/band/photos.html @ 12:d771b81e927e
Incorporate blueprints css into the site design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 11 May 2010 23:18:32 +0000 |
parents | 0dcfcdf50c62 |
children | 10be1f4f121b |
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@1 | 4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/thickbox.css" /> |
bgneal@1 | 5 {% endblock %} |
bgneal@1 | 6 {% block custom_js %} |
bgneal@1 | 7 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script> |
bgneal@1 | 8 <script type="text/javascript" src="{{ MEDIA_URL }}js/thickbox.js"></script> |
bgneal@1 | 9 {% endblock %} |
bgneal@1 | 10 {% block content %} |
bgneal@1 | 11 <h1>Madeira Photo Galleries</h1> |
bgneal@1 | 12 {% if galleries %} |
bgneal@1 | 13 <ul> |
bgneal@1 | 14 {% for gallery in galleries %} |
bgneal@1 | 15 <li><a href="{% url mysite.band.views.photo_detail gallery.id %}">{{ gallery.title }}</a></li> |
bgneal@1 | 16 {% endfor %} |
bgneal@1 | 17 </ul> |
bgneal@1 | 18 {% else %} |
bgneal@1 | 19 No photo galleries available at this time. |
bgneal@1 | 20 {% endif %} |
bgneal@1 | 21 {% if randomPhotos %} |
bgneal@1 | 22 <div class="madeira-photo-list"> |
bgneal@1 | 23 <h2>Random Photos:</h2> |
bgneal@1 | 24 {% for photo in randomPhotos %} |
bgneal@1 | 25 <a href="{{ photo.image.url }}" class="thickbox" rel="madeira-gallery"> |
bgneal@1 | 26 <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a> |
bgneal@1 | 27 {% endfor %} |
bgneal@1 | 28 </div> |
bgneal@1 | 29 {% endif %} |
bgneal@1 | 30 {% endblock %} |