comparison gpp/templates/news/story.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
23 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" 23 <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}"
24 class="news-icon" /></a> 24 class="news-icon" /></a>
25 {{ story.short_text|safe }} 25 {{ story.short_text|safe }}
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 %}
29 {% if story_tags %}
30 <hr /> 28 <hr />
31 <p> 29 <p>
32 Category: <a href="{% url news.views.category category=story.category.id page=1 %}">{{ story.category.title }}</a> 30 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" 31 <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png"
34 alt="Story Permalink" title="Story Permalink" /></a> 32 alt="Story Permalink" title="Story Permalink" /></a>
35 {% if user.is_authenticated %} 33 {% if user.is_authenticated %}
36 <a href="{% url news.views.email_story story.id %}"><img src="{{ MEDIA_URL }}icons/email_go.png" 34 <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> 35 alt="Send this story to a friend" title="Send this story to a friend" /></a>
38 {% endif %} 36 {% endif %}
39 </p> 37 </p>
38 {% tags_for_object story as story_tags %}
39 {% if story_tags %}
40 <div class="news-tags"> 40 <div class="news-tags">
41 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags: 41 <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
42 <ul> 42 <ul>
43 {% for tag in story_tags %} 43 {% for tag in story_tags %}
44 <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>