annotate bns_website/templates/bands/band_list.html @ 108:9ca05ec9b64e tip

Update buy links.
author Brian Neal <bgneal@gmail.com>
date Sat, 27 Sep 2014 12:36:06 -0500
parents e60af48feb00
children
rev   line source
bgneal@6 1 {% extends 'base.html' %}
bgneal@6 2 {% load core_tags %}
bgneal@6 3 {% block title %}Bands{% endblock %}
bgneal@9 4
bgneal@9 5 {% block custom_css %}
bgneal@9 6 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css">
ckridgway@55 7 <link rel="stylesheet" href="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
ckridgway@53 8 <link rel="stylesheet" href="{{ STATIC_URL }}css/bx_styles.css">
ckridgway@55 9 <style>
ckridgway@55 10 .hero-unit h1 { font-size: 50px; }
ckridgway@55 11 </style>
bgneal@9 12 {% endblock %}
bgneal@9 13 {% block custom_js %}
bgneal@9 14 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
bgneal@9 15 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
ckridgway@53 16 <script type="text/javascript" src="{{ STATIC_URL }}js/bxslider/jquery.bxSlider.min.js"></script>
ckridgway@55 17 <script type="text/javascript" src="{{ STATIC_URL }}js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
bgneal@9 18 <script type="text/javascript">
ckridgway@53 19 $(document).ready(function(){
ckridgway@53 20 $('#slider1').bxSlider({
ckridgway@53 21 mode: 'fade',
ckridgway@53 22 speed: 500,
ckridgway@53 23 auto: true,
ckridgway@53 24 autoControls: true,
ckridgway@53 25 autoHover: true,
ckridgway@53 26 randomStart: true,
ckridgway@53 27 pager: true,
ckridgway@53 28 pagerType: 'full',
ckridgway@53 29 wrapperClass: 'bands-slider-wrap'
ckridgway@55 30 });
ckridgway@55 31
ckridgway@55 32 $("a.band-image").fancybox({
ckridgway@55 33 'transitionIn' : 'elastic',
ckridgway@55 34 'transitionOut' : 'elastic',
ckridgway@55 35 'speedIn' : 600,
ckridgway@55 36 'speedOut' : 200,
ckridgway@55 37 'overlayShow' : false
ckridgway@55 38 });
ckridgway@55 39 });
bgneal@9 40 </script>
bgneal@9 41 {% endblock %}
bgneal@9 42
bgneal@6 43 {% block content %}
bgneal@6 44 {% navbar 'bands' %}
bgneal@9 45
ckridgway@47 46 <div class="hero-unit">
ckridgway@53 47 <div id="slider1">
ckridgway@53 48 {% for band in object_list %}
ckridgway@53 49 <div>
ckridgway@53 50 <div class="row">
ckridgway@53 51 <div class="span4">
ckridgway@55 52 {% if band.asset_prefix %}
ckridgway@55 53 <a class="band-image" href="{{ STATIC_URL }}images/bands/{{ band.asset_prefix }}_large.jpg">
ckridgway@55 54 <img src="{{ STATIC_URL }}images/bands/{{ band.asset_prefix }}_small.jpg" alt="{{ band.name }}" title="View {{ band.name }} full size" />
ckridgway@55 55 </a>
ckridgway@55 56 {% else %}
ckridgway@55 57 <img src="http://placehold.it/200x200&text={{ band.name|escapejs }}">
ckridgway@55 58 {% endif %}
ckridgway@53 59 </div>
bgneal@74 60 <div class="span9">
ckridgway@53 61 <h1>{{ band.name }}</h1>
ckridgway@53 62 <br/>
ckridgway@53 63 <span>{{ band.notes }}</span>
ckridgway@55 64 {% if band.url %}
bgneal@74 65 <p style="margin-top:1em"><a class="btn default bns" href="{{ band.url }}">Visit Website</a></p>
ckridgway@55 66 {% endif %}
ckridgway@53 67 </div>
ckridgway@53 68 </div>
ckridgway@52 69 </div>
ckridgway@53 70 {% endfor %}
ckridgway@53 71 </div>
ckridgway@47 72 </div>
ckridgway@47 73
bgneal@6 74 {% endblock %}