view bns_website/templates/news/news_list.html @ 38:6b4e02b8be6b

I reformatted the news_list.html template to be valid html and look a little better.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 06 Nov 2011 20:22:40 -0600
parents 1357c69e887d
children b9d6f6d930a9
line wrap: on
line source
{% extends 'base.html' %}
{% load core_tags %}
{% block title %}News{% endblock %}

{% block content %}
{% navbar 'news' %}
<h1>News</h1>
<dl>
{% for news in object_list %}
<article id="article"><h2>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h2>
    <div>{{ news.content }}</div>
    <small><b>{{ news.date }}</b></small>
</article>

{% endfor %}
</dl>

{% endblock %}