view mysite/templates/band/index.html @ 13:37384c648602

Putting slideshow on front page.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Aug 2010 18:38:42 +0000
parents d771b81e927e
children 54e35b21b369
line wrap: on
line source
{% extends 'band/base.html' %}
{% block title %}The Madeira{% 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>
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.cross-slide.min.js"></script>
<script type="text/javascript">
$(function() {
   $('#slideshow').crossSlide({
     speed: 45,
     fade: 1
   }, [
      { src: '{{ MEDIA_URL }}images/slideshow/1.jpg', dir: 'up'   },
      { src: '{{ MEDIA_URL }}images/slideshow/2.jpg', dir: 'down' },
      { src: '{{ MEDIA_URL }}images/slideshow/3.jpg', dir: 'up'   },
      { src: '{{ MEDIA_URL }}images/slideshow/4.jpg', dir: 'down' },
      { src: '{{ MEDIA_URL }}images/slideshow/5.jpg', dir: 'up'   },
      { src: '{{ MEDIA_URL }}images/slideshow/6.jpg', dir: 'down' }
   ]);
});
</script>
{% endblock %}
{% load markup %}
{% block content %}
<h1>The Madeira</h1>
<img class="floatLeftBox" src="{{ config.intro_photo.image.url }}" 
   alt="{{ config.intro_photo.title }}" title="{{config.intro_photo.title}}" border="0" />
{{ config.intro_text|textile }}
<br />

{% if upcomingDates %}
<div class="center-block">
<h2>Upcoming Shows...</h2>
 
<center><table border="0" cellspacing="10" cellpadding="3"><tr>
{% for gig in upcomingDates %}
   {% if gig.flyer %}
   <td>
   <a href="{{ gig.flyer.image.url }}" class="thickbox" rel="madeira-gallery">
      <img src="{{ gig.flyer.get_thumbnail_url }}" alt="{{ gig.flyer.caption }}" title="{{ gig.flyer.caption }}" /></a>
   <br /><center>{{ gig.flyer.caption }}</center>
   </td>
   {% endif %}
{% endfor %}
</tr></table></center>

<ul>
{% for show in upcomingDates %}
<li><strong>{{ show.date|date:"l, F d" }}</strong>: {{ show.venue.name }}, {{ show.venue.city.name }}{% if show.venue.city.state %}, {{ show.venue.city.state.name }}
{% endif %}
{% ifnotequal show.venue.city.country.name "USA" %}
{{ show.venue.city.country.name }}
{% endifnotequal %}
</li>
{% endfor %}
</ul>
<center><a href="{% url mysite.band.views.gigs %}">See all upcoming shows...</a></center>
</div>
{% endif %}

<div>
   <div id="slidshow">
   </div>
</div>

<div class="newsflash">
   <center>
   <table border="0" cellspacing="2" cellpadding="2" width="100%">
      <tr><td colspan="2"><center><h1>The Madeira Releases:</h1></center></td></tr>

      <tr><td colspan="2"><center>
                  <img src="{{ carpe.image.url }}" alt="Carpe Noctem Cover" title="Carpe Noctem" border="0" />
               </center></td></tr>
      <tr><td colspan="2"><center><strong>Available Now: Carpe Noctem!</strong><br />
                  </center></td></tr>
      <tr><td><center><a href="http://www.dblcrown.com"><img src="{{ sandstorm.image.url }}" alt="Sandstorm CD Cover"
                  title="Sandstorm" border="0" /></a></center></td>

          <td><center><a href="http://www.dblcrown.com"><img src="{{ ruins.image.url }}" alt="Ruins EP Cover" title="Ruins"
                  border="0" /></a></center></td></tr>
      <tr><td><center><a href="http://www.dblcrown.com">Sandstorm</a></center></td>
         <td><center><a href="http://www.dblcrown.com">Ruins</a></center></td></tr>
   </table>
   </center>
</div>

{% endblock %}