Mercurial > public > madeira
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/news.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,31 @@ +{% 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" }} + {% if story.title %} + • {{ 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>-- {{ story.author }}</em></p> + {% endif %} + </div> + {% endfor %} +{% else %} +No news at this time. +{% endif %} +{% endblock %}