Mercurial > public > madeira
annotate mysite/templates/band/songs.html @ 29:f61db5f82549
When displaying photos, display by id, ascending.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 05 Apr 2011 23:05:55 +0000 |
parents | 0dcfcdf50c62 |
children |
rev | line source |
---|---|
bgneal@1 | 1 {% extends 'band/base.html' %} |
bgneal@1 | 2 {% block title %}The Madeira | Songs{% endblock %} |
bgneal@1 | 3 {% block content %} |
bgneal@1 | 4 <h1>Madeira Songs</h1> |
bgneal@1 | 5 {% if mp3Sets %} |
bgneal@1 | 6 <p>Check out some Madeira MP3 downloads!</p> |
bgneal@1 | 7 {% for set in mp3Sets %} |
bgneal@1 | 8 <h2>{{ set.title }}</h2> |
bgneal@1 | 9 {{ set.text|safe|linebreaks }} |
bgneal@1 | 10 <ul> |
bgneal@1 | 11 {% for mp3 in set.mp3_set.all %} |
bgneal@1 | 12 <li><a href="{{ mp3.file.url }}">{{ mp3.title }}</a> |
bgneal@1 | 13 ({{ mp3.file.size|filesizeformat }}){% if mp3.desc %} - {{ mp3.desc }}{% endif %}</li> |
bgneal@1 | 14 {% endfor %} |
bgneal@1 | 15 </ul> |
bgneal@1 | 16 {% endfor %} |
bgneal@1 | 17 {% else %} |
bgneal@1 | 18 No downloads available at this time. |
bgneal@1 | 19 {% endif %} |
bgneal@1 | 20 {% endblock %} |