gremmie@1: {% extends 'news/base.html' %}
bgneal@310: {% load url from future %}
gremmie@1: {% block title %}News: Categories{% endblock %}
gremmie@1: {% block categories-class %}class="active"{% endblock %}
gremmie@1: {% block news_content %}
gremmie@1: <h3>Categories</h3>
gremmie@1: <p>
gremmie@1: This page shows the list of news categories for the site. Under each category we show the 
gremmie@1: latest ten stories. To see all the stories in a category, click the icon for that category.
gremmie@1: Each story is also <strong>tagged</strong> with a set of tags. You may also wish to 
bgneal@310: <a href="{% url 'news-tag_index' %}">view our stories by their tags</a>.
gremmie@1: </p>
gremmie@1: 
gremmie@1: {% for category, story_set in cat_list %}
gremmie@1:    <h3>{{ category.title }}</h3>
bgneal@310:    <p><a href="{% url 'news-category' slug=category.slug %}">
gremmie@1:       <img src="{{ category.icon.url }}" alt="{{ category.title }}" title="{{ category.title }}" />
gremmie@1:       </a>
gremmie@1:    </p>
gremmie@1:    {% if story_set %}
gremmie@1:       <ul>
gremmie@1:       {% for story in story_set %}
gremmie@1:          <li><a href="{{ story.get_absolute_url }}">{{ story.title }}</a> 
bgneal@204:             - {{ story.date_submitted|date:"F d, Y" }}</li>
gremmie@1:       {% endfor %}
gremmie@1:       </ul>
gremmie@1:    {% else %}
gremmie@1:       <p>No news at this time.</p>
gremmie@1:    {% endif %}
gremmie@1: {% endfor %}
gremmie@1: 
gremmie@1: {% endblock %}