annotate 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
rev   line source
gremmie@1 1 {% load comment_tags %}
gremmie@1 2 {% get_comment_count for story as comment_count %}
gremmie@1 3 <div class="news-story-container">
gremmie@1 4 <h4><a href="{% url news.views.story story.id %}">{{ story.title }}</a></h4>
gremmie@1 5 <div class="news-details">
gremmie@1 6 Submitted by {{ story.submitter.username }} on {{ story.date_published|date:"F d, Y" }}.
gremmie@1 7 </div>
gremmie@1 8 <a href="{% url news.views.category category=story.category.id,page=1 %}">
gremmie@1 9 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
gremmie@1 10 class="news-icon" /></a>
gremmie@1 11 <div class="news-content">
gremmie@1 12 {{ story.short_text|safe }}
gremmie@1 13 </div>
gremmie@1 14 <p>
gremmie@1 15 {% if story.long_text or comment_count %}
gremmie@1 16 <a href="{% url news.views.story story.id %}">Read more...</a> |
gremmie@1 17 {% endif %}
gremmie@1 18 <a href="{% url news.views.story story.id %}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>.
gremmie@1 19 </p>
gremmie@1 20 {% if story_tags %}
gremmie@1 21 <div class="news-tags">
gremmie@1 22 <span>Tags:</span>
gremmie@1 23 <ul>
gremmie@1 24 {% for tag in story_tags %}
gremmie@1 25 <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li>
gremmie@1 26 {% endfor %}
gremmie@1 27 </ul>
gremmie@1 28 </div>
gremmie@1 29 {% endif %}
gremmie@1 30 </div>