comparison gpp/templates/weblinks/view_links.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 952e05cb3d80
children 7e8d2dda99e3
comparison
equal deleted inserted replaced
196:893b6d462cf9 197:2baadae33f2e
10 {% block weblinks_content %} 10 {% block weblinks_content %}
11 <h3>Category: {{ category.title }}</h3> 11 <h3>Category: {{ category.title }}</h3>
12 12
13 {% if page.object_list %} 13 {% if page.object_list %}
14 <ul class="tab-nav"> 14 <ul class="tab-nav">
15 <li><a href="{% url weblinks-view_links category=category.id,sort="title",page="1" %}" 15 <li><a href="{% url weblinks-view_links category=category.id sort="title" page="1" %}"
16 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> 16 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li>
17 <li><a href="{% url weblinks-view_links category=category.id,sort="date",page="1" %}" 17 <li><a href="{% url weblinks-view_links category=category.id sort="date" page="1" %}"
18 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> 18 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li>
19 <li><a href="{% url weblinks-view_links category=category.id,sort="hits",page="1" %}" 19 <li><a href="{% url weblinks-view_links category=category.id sort="hits" page="1" %}"
20 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> 20 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li>
21 </ul> 21 </ul>
22 22
23 {% include 'core/pagination.html' %} 23 {% include 'core/pagination.html' %}
24 24