diff mysite/templates/band/photos.html @ 1:0dcfcdf50c62

Initial import of Madeira project from the private repository.
author Brian Neal <bgneal@gmail.com>
date Mon, 06 Apr 2009 03:10:59 +0000
parents
children 10be1f4f121b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mysite/templates/band/photos.html	Mon Apr 06 03:10:59 2009 +0000
@@ -0,0 +1,30 @@
+{% extends 'band/base.html' %}
+{% block title %}The Madeira | Photo Galleries{% endblock %}
+{% block custom_css %}
+<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/thickbox.css" />
+{% endblock %}
+{% block custom_js %}
+<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script>
+<script type="text/javascript" src="{{ MEDIA_URL }}js/thickbox.js"></script>
+{% endblock %}
+{% block content %}
+<h1>Madeira Photo Galleries</h1>
+{% if galleries %}
+   <ul>
+   {% for gallery in galleries %}
+      <li><a href="{% url mysite.band.views.photo_detail gallery.id %}">{{ gallery.title }}</a></li>
+   {% endfor %}
+   </ul>
+{% else %}
+No photo galleries available at this time.
+{% endif %}
+{% if randomPhotos %}
+   <div class="madeira-photo-list">
+   <h2>Random Photos:</h2>
+   {% for photo in randomPhotos %}
+      <a href="{{ photo.image.url }}" class="thickbox" rel="madeira-gallery">
+         <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a>
+   {% endfor %}
+   </div>
+{% endif %}
+{% endblock %}