Mercurial > public > sg101
comparison gpp/templates/news/index.html @ 240:1246a4f1ab4f
For #93: fix url scheme for the news application.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 00:14:54 +0000 |
parents | 2baadae33f2e |
children | 88b2b9cb8c1f |
comparison
equal
deleted
inserted
replaced
239:dcc929973bba | 240:1246a4f1ab4f |
---|---|
4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> | 4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> |
5 {% endblock %} | 5 {% endblock %} |
6 {% block news_content %} | 6 {% block news_content %} |
7 <h3>{{ title }}</h3> | 7 <h3>{{ title }}</h3> |
8 | 8 |
9 {% if query %} | 9 {% if page.object_list %} |
10 {% include 'core/pagination_query.html' %} | |
11 {% else %} | |
12 {% include 'core/pagination.html' %} | 10 {% include 'core/pagination.html' %} |
13 {% endif %} | |
14 | |
15 {% if page.object_list %} | |
16 {% for story in page.object_list %} | 11 {% for story in page.object_list %} |
17 {% include 'news/story_summary.html' %} | 12 {% include 'news/story_summary.html' %} |
18 {% endfor %} | 13 {% endfor %} |
14 {% include 'core/pagination.html' %} | |
19 <div style="clear:right;"></div> | 15 <div style="clear:right;"></div> |
20 {% else %} | 16 {% else %} |
21 {% if query %} | 17 <p>No news at this time.</p> |
22 <p>No results found.</p> | |
23 {% else %} | |
24 <p>No news at this time.</p> | |
25 {% endif %} | |
26 {% endif %} | |
27 | |
28 {% if query %} | |
29 {% include 'core/pagination_query.html' %} | |
30 {% else %} | |
31 {% include 'core/pagination.html' %} | |
32 {% endif %} | 18 {% endif %} |
33 | 19 |
34 {% endblock %} | 20 {% endblock %} |