view mysite/templates/band/photos.html @ 21:f3052378ab47

Updating the home page with a 6 video playlist from Mahogany's. Fixed the flyers on the gig page under chrome. Updated the copyright on the base template.
author Brian Neal <bgneal@gmail.com>
date Sun, 20 Mar 2011 19:53:35 +0000
parents 1b6b3e38e918
children ead7bd49c9e0
line wrap: on
line source
{% extends 'band/base.html' %}
{% block title %}The Madeira | Photo Galleries{% endblock %}
{% block custom_css %}
<link rel="stylesheet" href="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
{% endblock %}
{% block custom_js %}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
<script type="text/javascript">
$(function() {
   $('a.fancybox').fancybox();
});
</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="fancybox" rel="madeira-gallery">
         <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a>
   {% endfor %}
   </div>
{% endif %}
{% endblock %}