Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
31:5eed5e7c1c98 | 32:07da6967fc40 |
---|---|
1 {% load comment_tags %} | 1 {% load comment_tags %} |
2 {% get_comment_count for story as comment_count %} | 2 {% get_comment_count for story as comment_count %} |
3 <div class="news-story-container"> | 3 <div class="news-story-container"> |
4 {% if on_home %} | |
5 <h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3> | |
6 {% else %} | |
4 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4> | 7 <h4><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h4> |
8 {% endif %} | |
5 <div class="news-details"> | 9 <div class="news-details"> |
6 Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}. | 10 Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}. |
7 </div> | 11 </div> |
8 <a href="{% url news.views.category category=story.category.id,page=1 %}"> | 12 <a href="{% url news.views.category category=story.category.id,page=1 %}"> |
9 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" | 13 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" |