comparison gpp/templates/news/category_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 {% block title %}News: Categories{% endblock %}
3 {% block categories-class %}class="active"{% endblock %}
4 {% block news_content %}
5 <h3>Categories</h3>
6 <p>
7 This page shows the list of news categories for the site. Under each category we show the
8 latest ten stories. To see all the stories in a category, click the icon for that category.
9 Each story is also <strong>tagged</strong> with a set of tags. You may also wish to
10 <a href="{% url news-tag_index %}">view our stories by their tags</a>.
11 </p>
12
13 {% for category, story_set in cat_list %}
14 <h3>{{ category.title }}</h3>
15 <p><a href="{% url news.views.category category=category.id,page=1 %}">
16 <img src="{{ category.icon.url }}" alt="{{ category.title }}" title="{{ category.title }}" />
17 </a>
18 </p>
19 {% if story_set %}
20 <ul>
21 {% for story in story_set %}
22 <li><a href="{{ story.get_absolute_url }}">{{ story.title }}</a>
23 - {{ story.date_published|date:"F d, Y" }}</li>
24 {% endfor %}
25 </ul>
26 {% else %}
27 <p>No news at this time.</p>
28 {% endif %}
29 {% endfor %}
30
31 {% endblock %}