diff gpp/templates/news/story.html @ 197:2baadae33f2e

Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author Brian Neal <bgneal@gmail.com>
date Sat, 10 Apr 2010 04:32:24 +0000
parents 2d299909e074
children b4305e18d3af
line wrap: on
line diff
--- a/gpp/templates/news/story.html	Wed Apr 07 01:59:09 2010 +0000
+++ b/gpp/templates/news/story.html	Sat Apr 10 04:32:24 2010 +0000
@@ -19,7 +19,7 @@
 </div>
 <hr />
 <div class="news-content">
-   <a href="{% url news.views.category category=story.category.id,page=1 %}">
+   <a href="{% url news.views.category category=story.category.id page=1 %}">
    <img src="{{ story.category.icon.url }}" alt="{{ story.category.title }}" title="{{ story.category.title }}" 
       class="news-icon" /></a>
    {{ story.short_text|safe }}
@@ -29,7 +29,7 @@
    {% if story_tags %}
    <hr />
    <p>
-   Category: <a href="{% url news.views.category category=story.category.id,page=1 %}">{{ story.category.title }}</a>
+   Category: <a href="{% url news.views.category category=story.category.id page=1 %}">{{ story.category.title }}</a>
    <a href="{{ story.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png"
       alt="Story Permalink" title="Story Permalink" /></a>
 {% if user.is_authenticated %}
@@ -41,7 +41,7 @@
       <img src="{{ MEDIA_URL }}icons/tag_blue.png" alt="Tags" title="Tags" /> Tags:
       <ul>
          {% for tag in story_tags %}
-            <li><a href="{% url news-tag_page tag_name=tag.name,page=1 %}">{{ tag.name }}</a></li>
+            <li><a href="{% url news-tag_page tag_name=tag.name page=1 %}">{{ tag.name }}</a></li>
          {% endfor %}
       </ul>
    </div>