Mercurial > public > bravenewsurf
view bns_website/templates/news/news_list.html @ 42:66a3cafc4548
I added a basic news test.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Mon, 07 Nov 2011 21:20:29 -0600 |
parents | 9ce9f77d6cde |
children | 9936cae358d9 |
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 %} <aside id="news{{news.id}}"> <article class="article"> <header> <h3>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h3> </header> <section> <p>{{ news.content|safe }}</p> <small><b>{{ news.date }}</b></small> </section> </article> </aside> {% endfor %} </dl> {% endblock %}