Mercurial > public > sg101
diff gpp/templates/news/current_news.html @ 32:07da6967fc40
Created a current_news template tag for the home page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 05 May 2009 00:56:18 +0000 (2009-05-05) |
parents | |
children | da46e77cd804 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/news/current_news.html Tue May 05 00:56:18 2009 +0000 @@ -0,0 +1,10 @@ +{% load tagging_tags %} +{% if stories %} +<h2>Current News Stories</h2> +{% for story in stories %} + {% tags_for_object story as story_tags %} + {% include 'news/story_summary.html' %} +{% endfor %} +<hr /> +<p>For more news stories, check out our <a href="{% url news-index_page page=1 %}">news archive</a>.</p> +{% endif %}