Mercurial > public > sg101
diff gpp/templates/news/story_summary.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 |
parents | c284c0e5c5db |
children | 2baadae33f2e |
line wrap: on
line diff
--- a/gpp/templates/news/story_summary.html Sun May 03 20:27:57 2009 +0000 +++ b/gpp/templates/news/story_summary.html Tue May 05 00:56:18 2009 +0000 @@ -1,7 +1,11 @@ {% load comment_tags %} {% get_comment_count for story as comment_count %} <div class="news-story-container"> +{% if on_home %} +<h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3> +{% else %} <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4> +{% endif %} <div class="news-details"> Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}. </div>