Mercurial > public > madeira
annotate mysite/templates/band/news.html @ 88:7245c769e31e django1.3
Close this branch. I'm not sure if I merged it correctly to the
default branch, because the graphlog doesn't look right. But the
changes were made to default somehow. So closing this off to prevent
future confusion.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 13 Apr 2013 18:08:19 -0500 |
parents | 0dcfcdf50c62 |
children |
rev | line source |
---|---|
bgneal@1 | 1 {% extends 'band/base.html' %} |
bgneal@1 | 2 {% load markup %} |
bgneal@1 | 3 {% block title %}The Madeira | News{% endblock %} |
bgneal@1 | 4 {% block content %} |
bgneal@1 | 5 <h1>News</h1> |
bgneal@1 | 6 {% if news %} |
bgneal@1 | 7 {% for story in news %} |
bgneal@1 | 8 <h2>{{ story.date|date:"F d, Y" }} |
bgneal@1 | 9 {% if story.title %} |
bgneal@1 | 10 • {{ story.title }} |
bgneal@1 | 11 {% endif %} |
bgneal@1 | 12 </h2> |
bgneal@1 | 13 <div> |
bgneal@1 | 14 {% if story.photo %} |
bgneal@1 | 15 <img src="{{ story.photo.url }}" class="floatLeftBox" |
bgneal@1 | 16 alt="{{ story.photo_caption }}" title="{{ story.photo_caption }}" border="0" /> |
bgneal@1 | 17 {% endif %} |
bgneal@1 | 18 {% if story.markup_enabled %} |
bgneal@1 | 19 {{ story.text|textile }} |
bgneal@1 | 20 {% else %} |
bgneal@1 | 21 {{ story.text|safe|linebreaks }} |
bgneal@1 | 22 {% endif %} |
bgneal@1 | 23 {% if story.author %} |
bgneal@1 | 24 <p><em>-- {{ story.author }}</em></p> |
bgneal@1 | 25 {% endif %} |
bgneal@1 | 26 </div> |
bgneal@1 | 27 {% endfor %} |
bgneal@1 | 28 {% else %} |
bgneal@1 | 29 No news at this time. |
bgneal@1 | 30 {% endif %} |
bgneal@1 | 31 {% endblock %} |