Mercurial > public > sg101
comparison gpp/templates/news/story_summary.html @ 205:da46e77cd804
Fixing #77, news tags were getting exploded by letter on some views/template tags.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 01 May 2010 22:25:49 +0000 |
parents | b4305e18d3af |
children | 1246a4f1ab4f |
comparison
equal
deleted
inserted
replaced
204:b4305e18d3af | 205:da46e77cd804 |
---|---|
1 {% load tagging_tags %} | |
1 {% load comment_tags %} | 2 {% load comment_tags %} |
2 {% get_comment_count for story as comment_count %} | 3 {% get_comment_count for story as comment_count %} |
3 <div class="news-story-container"> | 4 <div class="news-story-container"> |
4 {% if on_home %} | 5 {% if on_home %} |
5 <h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3> | 6 <h3><a href="{{ story.get_absolute_url }}">{{ story.title }}</a></h3> |
30 {% if user.is_authenticated %} | 31 {% if user.is_authenticated %} |
31 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" | 32 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" |
32 alt="Send this story to a friend" title="Send this story to a friend" /></a> | 33 alt="Send this story to a friend" title="Send this story to a friend" /></a> |
33 {% endif %} | 34 {% endif %} |
34 </p> | 35 </p> |
35 {% if story.tags %} | 36 {% tags_for_object story as story_tags %} |
37 {% if story_tags %} | |
36 <div class="news-tags"> | 38 <div class="news-tags"> |
37 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: | 39 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: |
38 <ul> | 40 <ul> |
39 {% for tag in story.tags %} | 41 {% for tag in story_tags %} |
40 <li><a href="{% url news-tag_page tag_name=tag page=1 %}">{{ tag }}</a></li> | 42 <li><a href="{% url news-tag_page tag_name=tag page=1 %}">{{ tag }}</a></li> |
41 {% endfor %} | 43 {% endfor %} |
42 </ul> | 44 </ul> |
43 </div> | 45 </div> |
44 {% endif %} | 46 {% endif %} |