Mercurial > public > bravenewsurf
annotate bns_website/templates/news/news_list.html @ 39:b9d6f6d930a9
Merged Chris and Brian's changes with mine.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 06 Nov 2011 20:28:25 -0600 |
parents | 6b4e02b8be6b ced908af601a |
children | 9ce9f77d6cde |
rev | line source |
---|---|
bob@14 | 1 {% extends 'base.html' %} |
bob@14 | 2 {% load core_tags %} |
bob@14 | 3 {% block title %}News{% endblock %} |
bob@14 | 4 |
bob@14 | 5 {% block content %} |
bob@14 | 6 {% navbar 'news' %} |
bob@14 | 7 <h1>News</h1> |
bob@14 | 8 <dl> |
bob@14 | 9 {% for news in object_list %} |
bob@38 | 10 <article id="article"><h2>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h2> |
bob@39 | 11 <div>{{ news.content|safe }}</div> |
bob@38 | 12 <small><b>{{ news.date }}</b></small> |
bob@38 | 13 </article> |
bob@38 | 14 |
bob@14 | 15 {% endfor %} |
bob@14 | 16 </dl> |
bob@14 | 17 |
bob@14 | 18 {% endblock %} |