Mercurial > public > bravenewsurf
annotate bns_website/templates/news/news_list.html @ 21:687af3cb0525
I change the news model to have reverse chronological ordering.
I removed a rogue </div> tab from the news_list.html template.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Mon, 31 Oct 2011 20:55:02 -0500 |
parents | 2de51cc51d3a |
children | 1357c69e887d |
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 custom_css %} |
bob@14 | 6 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css"> |
bob@14 | 7 {% endblock %} |
bob@14 | 8 {% block custom_js %} |
bob@14 | 9 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> |
bob@14 | 10 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> |
bob@14 | 11 <script type="text/javascript"> |
bob@14 | 12 $(function() { |
bob@14 | 13 $("#accordion").accordion({active: false}); |
bob@14 | 14 }); |
bob@14 | 15 </script> |
bob@14 | 16 {% endblock %} |
bob@14 | 17 |
bob@14 | 18 {% block content %} |
bob@14 | 19 {% navbar 'news' %} |
bob@14 | 20 <h1>News</h1> |
bob@14 | 21 <dl> |
bob@14 | 22 {% for news in object_list %} |
bob@14 | 23 <dt>{{ news.title }}</a></dt> |
bob@14 | 24 <dd>{{ news.content|linebreaksbr }}</dd> |
bob@14 | 25 <p/> |
bob@14 | 26 {% endfor %} |
bob@14 | 27 </dl> |
bob@14 | 28 |
bob@14 | 29 {% endblock %} |