Mercurial > public > bravenewsurf
view 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 |
line wrap: on
line source
{% extends 'base.html' %} {% 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 %} <dt>{{ news.title }}</a></dt> <dd>{{ news.content|linebreaksbr }}</dd> <p/> {% endfor %} </dl> </div> {% endblock %}