annotate mysite/templates/band/news.html @ 15:1b449b67af27

Use newer version of jquery hosted on google.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Aug 2010 18:45:23 +0000
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" }}&nbsp;
bgneal@1 9 {% if story.title %}
bgneal@1 10 &bull; {{ 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>--&nbsp;{{ 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 %}