diff 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
line wrap: on
line diff
--- a/gpp/templates/news/story_summary.html	Sat May 01 21:53:59 2010 +0000
+++ b/gpp/templates/news/story_summary.html	Sat May 01 22:25:49 2010 +0000
@@ -1,3 +1,4 @@
+{% load tagging_tags %}
 {% load comment_tags %}
 {% get_comment_count for story as comment_count %}
 <div class="news-story-container">
@@ -32,11 +33,12 @@
    alt="Send this story to a friend" title="Send this story to a friend" /></a>
 {% endif %}
 </p>
-{% if story.tags %}
+{% tags_for_object story as story_tags %}
+{% if story_tags %}
 <div class="news-tags">
    <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
    <ul>
-      {% for tag in story.tags %}
+      {% for tag in story_tags %}
          <li><a href="{% url news-tag_page tag_name=tag page=1 %}">{{ tag }}</a></li>
       {% endfor %}
    </ul>