Mercurial > public > bravenewsurf
annotate 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 |
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@41 | 10 <aside id="news{{news.id}}"> |
bob@41 | 11 <article class="article"> |
bob@41 | 12 <header> |
bob@41 | 13 <h3>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h3> |
bob@41 | 14 </header> |
bob@41 | 15 <section> |
bob@41 | 16 <p>{{ news.content|safe }}</p> |
bob@41 | 17 <small><b>{{ news.date }}</b></small> |
bob@41 | 18 </section> |
bob@38 | 19 </article> |
bob@41 | 20 </aside> |
bob@38 | 21 |
bob@14 | 22 {% endfor %} |
bob@14 | 23 </dl> |
bob@14 | 24 |
bob@14 | 25 {% endblock %} |