comparison 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
comparison
equal deleted inserted replaced
37:353ca3874f43 38:6b4e02b8be6b
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load core_tags %} 2 {% load core_tags %}
3 {% block title %}News{% endblock %} 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 4
18 {% block content %} 5 {% block content %}
19 {% navbar 'news' %} 6 {% navbar 'news' %}
20 <h1>News</h1> 7 <h1>News</h1>
21 <dl> 8 <dl>
22 {% for news in object_list %} 9 {% for news in object_list %}
23 <div class="alert-message block-message info"> 10 <article id="article"><h2>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h2>
24 <dt><h2>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h2> 11 <div>{{ news.content }}</div>
25 </dt> 12 <small><b>{{ news.date }}</b></small>
26 <dd>{{ news.content|linebreaksbr }}</dd> 13 </article>
27 <p align="right"> <span class="label">{{news.date}}</span></p> 14
28 </div>
29 <p/>
30 {% endfor %} 15 {% endfor %}
31 </dl> 16 </dl>
32 17
33 {% endblock %} 18 {% endblock %}