annotate gpp/templates/news/category_index.html @ 487:77d878acea5e

For #233; add social media sharing buttons to podcast pages.
author Brian Neal <bgneal@gmail.com>
date Wed, 19 Oct 2011 00:05:54 +0000
parents daa2916f5b34
children
rev   line source
gremmie@1 1 {% extends 'news/base.html' %}
bgneal@310 2 {% load url from future %}
gremmie@1 3 {% block title %}News: Categories{% endblock %}
gremmie@1 4 {% block categories-class %}class="active"{% endblock %}
gremmie@1 5 {% block news_content %}
gremmie@1 6 <h3>Categories</h3>
gremmie@1 7 <p>
gremmie@1 8 This page shows the list of news categories for the site. Under each category we show the
gremmie@1 9 latest ten stories. To see all the stories in a category, click the icon for that category.
gremmie@1 10 Each story is also <strong>tagged</strong> with a set of tags. You may also wish to
bgneal@310 11 <a href="{% url 'news-tag_index' %}">view our stories by their tags</a>.
gremmie@1 12 </p>
gremmie@1 13
gremmie@1 14 {% for category, story_set in cat_list %}
gremmie@1 15 <h3>{{ category.title }}</h3>
bgneal@310 16 <p><a href="{% url 'news-category' slug=category.slug %}">
gremmie@1 17 <img src="{{ category.icon.url }}" alt="{{ category.title }}" title="{{ category.title }}" />
gremmie@1 18 </a>
gremmie@1 19 </p>
gremmie@1 20 {% if story_set %}
gremmie@1 21 <ul>
gremmie@1 22 {% for story in story_set %}
gremmie@1 23 <li><a href="{{ story.get_absolute_url }}">{{ story.title }}</a>
bgneal@204 24 - {{ story.date_submitted|date:"F d, Y" }}</li>
gremmie@1 25 {% endfor %}
gremmie@1 26 </ul>
gremmie@1 27 {% else %}
gremmie@1 28 <p>No news at this time.</p>
gremmie@1 29 {% endif %}
gremmie@1 30 {% endfor %}
gremmie@1 31
gremmie@1 32 {% endblock %}