Mercurial > public > madeira
comparison mysite/templates/band/news.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 |
comparison
equal
deleted
inserted
replaced
0:df0370bfe3f0 | 1:0dcfcdf50c62 |
---|---|
1 {% extends 'band/base.html' %} | |
2 {% load markup %} | |
3 {% block title %}The Madeira | News{% endblock %} | |
4 {% block content %} | |
5 <h1>News</h1> | |
6 {% if news %} | |
7 {% for story in news %} | |
8 <h2>{{ story.date|date:"F d, Y" }} | |
9 {% if story.title %} | |
10 • {{ story.title }} | |
11 {% endif %} | |
12 </h2> | |
13 <div> | |
14 {% if story.photo %} | |
15 <img src="{{ story.photo.url }}" class="floatLeftBox" | |
16 alt="{{ story.photo_caption }}" title="{{ story.photo_caption }}" border="0" /> | |
17 {% endif %} | |
18 {% if story.markup_enabled %} | |
19 {{ story.text|textile }} | |
20 {% else %} | |
21 {{ story.text|safe|linebreaks }} | |
22 {% endif %} | |
23 {% if story.author %} | |
24 <p><em>-- {{ story.author }}</em></p> | |
25 {% endif %} | |
26 </div> | |
27 {% endfor %} | |
28 {% else %} | |
29 No news at this time. | |
30 {% endif %} | |
31 {% endblock %} |