Mercurial > public > bravenewsurf
view bns_website/templates/news/news_list.html @ 40:5c0f9d80442e
I added a news template tag that's a blatant rip off of Chris' review one.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 06 Nov 2011 21:16:22 -0600 |
parents | b9d6f6d930a9 |
children | 9ce9f77d6cde |
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|safe }}</div> <small><b>{{ news.date }}</b></small> </article> {% endfor %} </dl> {% endblock %}