comparison gpp/templates/news/story.html @ 24:c284c0e5c5db

News tweaks to story and story summary templates.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 21:51:25 +0000
parents f408971657b9
children 2d299909e074
comparison
equal deleted inserted replaced
23:a5f27f25fa52 24:c284c0e5c5db
26 {{ story.long_text|safe }} 26 {{ story.long_text|safe }}
27 <br clear="all" /> 27 <br clear="all" />
28 {% tags_for_object story as story_tags %} 28 {% tags_for_object story as story_tags %}
29 {% if story_tags %} 29 {% if story_tags %}
30 <hr /> 30 <hr />
31 <p>
32 Category: <a href="{% url news.views.category category=story.category.id,page=1 %}">{{ story.category.title }}</a>
33 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png"
34 alt="Story Permalink" title="Story Permalink" /></a>
35 {% if user.is_authenticated %}
36 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png"
37 alt="Send this story to a friend" title="Send this story to a friend" /></a>
38 {% endif %}
39 </p>
31 <div class="news-tags"> 40 <div class="news-tags">
32 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> 41 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
33 <ul> 42 <ul>
34 {% for tag in story_tags %} 43 {% for tag in story_tags %}
35 <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li> 44 <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li>
36 {% endfor %} 45 {% endfor %}
37 </ul> 46 </ul>
38 </div> 47 </div>
39 {% endif %} 48 {% endif %}
40 <p>
41 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png"
42 alt="Story Permalink" title="Story Permalink" /></a>
43 {% if user.is_authenticated %}
44 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png"
45 alt="Send this story to a friend" title="Send this story to a friend" /></a>
46 {% endif %}
47 </p>
48 </div> 49 </div>
49 {% get_comment_count for story as comment_count %} 50 {% get_comment_count for story as comment_count %}
50 <p>This story has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p> 51 <p>This story has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p>
51 <hr /> 52 <hr />
52 {% render_comment_list story %} 53 {% render_comment_list story %}