Mercurial > public > bravenewsurf
comparison bns_website/templates/bands/band_list.html @ 9:f2cb9b2ec552
Added generic views for music, videos, and the buy page with placeholder text.
Fix typo in bands.json.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 Oct 2011 22:31:42 -0500 |
parents | aee309dab2f1 |
children | 59dd574fcfff |
comparison
equal
deleted
inserted
replaced
8:92537b487942 | 9:f2cb9b2ec552 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load core_tags %} | 2 {% load core_tags %} |
3 {% block title %}Bands{% endblock %} | 3 {% block title %}Bands{% endblock %} |
4 | |
5 {% block custom_css %} | |
6 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css"> | |
7 {% endblock %} | |
8 {% block custom_js %} | |
9 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
10 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> | |
11 <script type="text/javascript"> | |
12 $(function() { | |
13 $("#accordion").accordion({active: false}); | |
14 }); | |
15 </script> | |
16 {% endblock %} | |
17 | |
4 {% block content %} | 18 {% block content %} |
5 {% navbar 'bands' %} | 19 {% navbar 'bands' %} |
6 <h1>Bands</h1> | 20 <h1>Bands</h1> |
7 <p>This is too "wall of text-y", so maybe break it up with band photos. And/or put a javascript slideshow of all the bands up here at the top.</p> | 21 <p>This is too "wall of text-y", so maybe break it up with band photos. And/or put a javascript slideshow of all the bands up here at the top.</p> |
8 <dl> | 22 <dl> |
9 {% for band in object_list %} | 23 {% for band in object_list %} |
10 <dt><a href="{{ band.url }}">{{ band.name }}</a></dt> | 24 <dt><a href="{{ band.url }}">{{ band.name }}</a></dt> |
11 <dd>{{ band.notes|linebreaksbr }}</dd> | 25 <dd>{{ band.notes|linebreaksbr }}</dd> |
12 {% endfor %} | 26 {% endfor %} |
13 </dl> | 27 </dl> |
28 | |
29 <p>And here is what it looks like as a jQuery accordion.</p> | |
30 <div id="accordion"> | |
31 {% for band in object_list %} | |
32 <h3><a href="#">{{ band.name }}</a></h3> | |
33 <div> | |
34 {{ band.notes|linebreaksbr }} | |
35 <p style="margin-top:1em"><a class="btn default" href="{{ band.url }}">{{ band.name }} Website</a></p> | |
36 </div> | |
37 {% endfor %} | |
38 </div> | |
39 | |
14 {% endblock %} | 40 {% endblock %} |