# HG changeset patch # User Brian Neal # Date 1272752749 0 # Node ID da46e77cd8040cfd3749a495e09b331efb6877b2 # Parent b4305e18d3afd490614fc557fdb6d0910a6c29ed Fixing #77, news tags were getting exploded by letter on some views/template tags. diff -r b4305e18d3af -r da46e77cd804 gpp/news/views.py --- a/gpp/news/views.py Sat May 01 21:53:59 2010 +0000 +++ b/gpp/news/views.py Sat May 01 22:25:49 2010 +0000 @@ -30,7 +30,7 @@ from news.forms import SearchNewsForm from news.forms import SendStoryForm -NEWS_PER_PAGE = 2 +NEWS_PER_PAGE = 5 ####################################################################### diff -r b4305e18d3af -r da46e77cd804 gpp/templates/news/current_news.html --- a/gpp/templates/news/current_news.html Sat May 01 21:53:59 2010 +0000 +++ b/gpp/templates/news/current_news.html Sat May 01 22:25:49 2010 +0000 @@ -1,8 +1,6 @@ -{% load tagging_tags %} {% if stories %}

Current News Stories

{% for story in stories %} - {% tags_for_object story as story_tags %} {% include 'news/story_summary.html' %} {% endfor %}
diff -r b4305e18d3af -r da46e77cd804 gpp/templates/news/story.html --- a/gpp/templates/news/story.html Sat May 01 21:53:59 2010 +0000 +++ b/gpp/templates/news/story.html Sat May 01 22:25:49 2010 +0000 @@ -25,8 +25,6 @@ {{ story.short_text|safe }} {{ story.long_text|safe }}
- {% tags_for_object story as story_tags %} - {% if story_tags %}

Category: {{ story.category.title }} @@ -37,6 +35,8 @@ alt="Send this story to a friend" title="Send this story to a friend" /> {% endif %}

+ {% tags_for_object story as story_tags %} + {% if story_tags %}
Tags Tags: