view mysite/templates/band/news.html @ 21:f3052378ab47

Updating the home page with a 6 video playlist from Mahogany's. Fixed the flyers on the gig page under chrome. Updated the copyright on the base template.
author Brian Neal <bgneal@gmail.com>
date Sun, 20 Mar 2011 19:53:35 +0000
parents 0dcfcdf50c62
children
line wrap: on
line source
{% extends 'band/base.html' %}
{% load markup %}
{% block title %}The Madeira | News{% endblock %}
{% block content %}
<h1>News</h1>
{% if news %}
   {% for story in news %}
      <h2>{{ story.date|date:"F d, Y" }}&nbsp;
      {% if story.title %}
      &bull; {{ story.title }}
      {% endif %}
      </h2>
      <div>
         {% if story.photo %}
            <img src="{{ story.photo.url }}" class="floatLeftBox" 
               alt="{{ story.photo_caption }}" title="{{ story.photo_caption }}" border="0" />
         {% endif %}
         {% if story.markup_enabled %}
            {{ story.text|textile }}
         {% else %}
            {{ story.text|safe|linebreaks }}
         {% endif %}
         {% if story.author %}
            <p><em>--&nbsp;{{ story.author }}</em></p>
         {% endif %}
      </div>
   {% endfor %}
{% else %}
No news at this time.
{% endif %}
{% endblock %}