Mercurial > public > madeira
diff mysite/templates/band/bio.html @ 1:0dcfcdf50c62
Initial import of Madeira project from the private repository.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 06 Apr 2009 03:10:59 +0000 |
parents | |
children | d771b81e927e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/bio.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,24 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Biography{% endblock %} +{% block content %} +<h1>Band Biography</h1> +{% if members %} + {% for member in members %} + <h2>{{ member.name }} - {{ member.instrument }}</h2> + {% if member.photo %} + <img class="floatLeftBox" src="{{ member.photo.url }}" border="0" alt="{{ member.name }}" title="{{ member.name }}" /> + {{ member.bio|linebreaks }} + {% if member.gear_set.all %} + <p>Gear:</p> + <ul> + {% for item in member.gear_set.all %} + <li>{{ item.item }}</li> + {% endfor %} + </ul> + {% endif %} + {% endif %} + {% endfor %} +{% else %} +The band has no members. +{% endif %} +{% endblock %}