comparison gpp/templates/news/index.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children 2baadae33f2e
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'news/base.html' %}
2 {% load tagging_tags %}
3 {% block title %}News: {{ title }}{% endblock %}
4 {% block news_css %}
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
6 {% endblock %}
7 {% block news_content %}
8 <h3>{{ title }}</h3>
9
10 {% if query %}
11 {% include 'core/pagination_query.html' %}
12 {% else %}
13 {% include 'core/pagination.html' %}
14 {% endif %}
15
16 {% if page.object_list %}
17 {% for story in page.object_list %}
18 {% tags_for_object story as story_tags %}
19 {% include 'news/story_summary.html' %}
20 {% endfor %}
21 <div style="clear:right;"></div>
22 {% else %}
23 {% if query %}
24 <p>No results found.</p>
25 {% else %}
26 <p>No news at this time.</p>
27 {% endif %}
28 {% endif %}
29
30 {% if query %}
31 {% include 'core/pagination_query.html' %}
32 {% else %}
33 {% include 'core/pagination.html' %}
34 {% endif %}
35
36 {% endblock %}