comparison 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
comparison
equal deleted inserted replaced
13:40d86ae48db1 14:2de51cc51d3a
1 {% extends 'base.html' %}
2 {% load core_tags %}
3 {% block title %}News{% endblock %}
4
5 {% block custom_css %}
6 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css">
7 {% endblock %}
8 {% block custom_js %}
9 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
10 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
11 <script type="text/javascript">
12 $(function() {
13 $("#accordion").accordion({active: false});
14 });
15 </script>
16 {% endblock %}
17
18 {% block content %}
19 {% navbar 'news' %}
20 <h1>News</h1>
21 <dl>
22 {% for news in object_list %}
23 <dt>{{ news.title }}</a></dt>
24 <dd>{{ news.content|linebreaksbr }}</dd>
25 <p/>
26 {% endfor %}
27 </dl>
28
29 </div>
30
31 {% endblock %}