Mercurial > public > bravenewsurf
annotate 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 |
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@38 | 11 <div>{{ news.content }}</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 %} |