Mercurial > public > bravenewsurf
annotate bns_website/templates/news/news_list.html @ 14:2de51cc51d3a
My first stab at the news app. The template is a little dull, but it's a start.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 30 Oct 2011 21:33:45 -0500 |
parents | |
children | 687af3cb0525 |
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 </div> |
bob@14 | 30 |
bob@14 | 31 {% endblock %} |