changeset 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 353ca3874f43
children b9d6f6d930a9
files bns_website/static/css/base.css bns_website/templates/news/news_list.html
diffstat 2 files changed, 9 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/bns_website/static/css/base.css	Sun Nov 06 20:22:07 2011 -0600
+++ b/bns_website/static/css/base.css	Sun Nov 06 20:22:40 2011 -0600
@@ -1,4 +1,4 @@
-body { 
+body {
    padding-top: 40px
 }
 .social-sharing {
@@ -12,3 +12,6 @@
    display: inline-block;
    vertical-align: top;
 }
+#article {
+    margin-bottom: 1.5em;
+}
\ No newline at end of file
--- a/bns_website/templates/news/news_list.html	Sun Nov 06 20:22:07 2011 -0600
+++ b/bns_website/templates/news/news_list.html	Sun Nov 06 20:22:40 2011 -0600
@@ -2,31 +2,16 @@
 {% load core_tags %}
 {% block title %}News{% endblock %}
 
-{% block custom_css %}
-<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/redmond/jquery-ui.css">
-{% endblock %}
-{% block custom_js %}
-<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
-<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
-<script type="text/javascript">
-    $(function() {
-      $("#accordion").accordion({active: false});
-    });
-</script>
-{% endblock %}
-
 {% block content %}
 {% navbar 'news' %}
 <h1>News</h1>
 <dl>
 {% for news in object_list %}
-<div class="alert-message block-message info">
-<dt><h2>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h2>
-</dt>
-<dd>{{ news.content|linebreaksbr }}</dd>
-<p align="right">   <span class="label">{{news.date}}</span></p>
-</div>
-<p/>
+<article id="article"><h2>{{ news.title }} {% if news.is_new %}<span class="label success">New</span>{% endif %}</h2>
+    <div>{{ news.content }}</div>
+    <small><b>{{ news.date }}</b></small>
+</article>
+
 {% endfor %}
 </dl>