Mercurial > public > bravenewsurf
view bns_website/templates/bands/band_list.html @ 13:40d86ae48db1
A new bob settings for running the test server with sqlite instead of MySQL because setting up MySQL on my Mac isn't that appealing.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 30 Oct 2011 18:29:41 -0500 |
parents | f2cb9b2ec552 |
children | 59dd574fcfff |
line wrap: on
line source
{% extends 'base.html' %} {% load core_tags %} {% block title %}Bands{% endblock %} {% block custom_css %} <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css"> {% endblock %} {% block custom_js %} <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> <script type="text/javascript"> $(function() { $("#accordion").accordion({active: false}); }); </script> {% endblock %} {% block content %} {% navbar 'bands' %} <h1>Bands</h1> <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> <dl> {% for band in object_list %} <dt><a href="{{ band.url }}">{{ band.name }}</a></dt> <dd>{{ band.notes|linebreaksbr }}</dd> {% endfor %} </dl> <p>And here is what it looks like as a jQuery accordion.</p> <div id="accordion"> {% for band in object_list %} <h3><a href="#">{{ band.name }}</a></h3> <div> {{ band.notes|linebreaksbr }} <p style="margin-top:1em"><a class="btn default" href="{{ band.url }}">{{ band.name }} Website</a></p> </div> {% endfor %} </div> {% endblock %}