Mercurial > public > sg101
view gpp/templates/news/story_summary.html @ 3:33f73b7bd305
Adjusted weblinks link template. Use an icon for reporting broken link.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 18:28:13 +0000 |
parents | dbd703f7d63a |
children | 63696b279e35 |
line wrap: on
line source
{% 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>