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