view mysite/templates/band/photo_detail.html @ 20:7aa63299adf6

Adding a work around for IE path problem in the .css file, as per http://groups.google.com/group/fancybox/browse_frm/thread/8530478044b9f586
author Brian Neal <bgneal@gmail.com>
date Wed, 08 Sep 2010 23:15:57 +0000
parents 1b6b3e38e918
children ead7bd49c9e0
line wrap: on
line source
{% extends 'band/base.html' %}
{% load markup %}
{% block title %}The Madeira | Photos: {{ gallery.title }}{% 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 Photos: {{ gallery.title }}</h1>
{{ gallery.description|textile }}

<div class="madeira-photo-list">
{% for photo in gallery.photos.all %}
   <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>
<center><a href="{% url mysite.band.views.photos_index %}">Photo gallery index</a></center>

{% endblock %}