Mercurial > public > sg101
diff gpp/templates/news/story_summary.html @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | 63696b279e35 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/news/story_summary.html Mon Apr 06 02:43:12 2009 +0000 @@ -0,0 +1,30 @@ +{% load comment_tags %} +{% get_comment_count for story as comment_count %} +<div class="news-story-container"> +<h4><a href="{% url news.views.story story.id %}">{{ story.title }}</a></h4> +<div class="news-details"> + Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}. +</div> +<a href="{% url news.views.category category=story.category.id,page=1 %}"> +<img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" + class="news-icon" /></a> +<div class="news-content"> + {{ story.short_text|safe }} +</div> +<p> +{% if story.long_text or comment_count %} +<a href="{% url news.views.story story.id %}">Read more...</a> | +{% endif %} +<a href="{% url news.views.story story.id %}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>. +</p> +{% if story_tags %} +<div class="news-tags"> + <span>Tags:</span> + <ul> + {% for tag in story_tags %} + <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li> + {% endfor %} + </ul> +</div> +{% endif %} +</div>