comparison gpp/templates/news/category_index.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 dbd703f7d63a
children b4305e18d3af
comparison
equal deleted inserted replaced
196:893b6d462cf9 197:2baadae33f2e
10 <a href="{% url news-tag_index %}">view our stories by their tags</a>. 10 <a href="{% url news-tag_index %}">view our stories by their tags</a>.
11 </p> 11 </p>
12 12
13 {% for category, story_set in cat_list %} 13 {% for category, story_set in cat_list %}
14 <h3>{{ category.title }}</h3> 14 <h3>{{ category.title }}</h3>
15 <p><a href="{% url news.views.category category=category.id,page=1 %}"> 15 <p><a href="{% url news.views.category category=category.id page=1 %}">
16 <img src="{{ category.icon.url }}" alt="{{ category.title }}" title="{{ category.title }}" /> 16 <img src="{{ category.icon.url }}" alt="{{ category.title }}" title="{{ category.title }}" />
17 </a> 17 </a>
18 </p> 18 </p>
19 {% if story_set %} 19 {% if story_set %}
20 <ul> 20 <ul>