Mercurial > public > sg101
diff gpp/templates/downloads/download_list.html @ 310:daa2916f5b34
Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 04:03:48 +0000 |
parents | 27bee3ac85e6 |
children | 88b2b9cb8c1f |
line wrap: on
line diff
--- a/gpp/templates/downloads/download_list.html Mon Jan 17 04:00:59 2011 +0000 +++ b/gpp/templates/downloads/download_list.html Thu Jan 20 04:03:48 2011 +0000 @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% load url from future %} {% load downloads_tags %} {% block title %}Downloads: {{ category.title }}{% endblock %} {% block custom_css %} @@ -16,13 +17,13 @@ {% if page.object_list %} <ul class="tab-nav"> - <li><a href="{% url downloads-category slug=category.slug sort="title" %}" + <li><a href="{% url 'downloads-category' slug=category.slug sort="title" %}" {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> - <li><a href="{% url downloads-category slug=category.slug sort="date" %}" + <li><a href="{% url 'downloads-category' slug=category.slug sort="date" %}" {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> - <li><a href="{% url downloads-category slug=category.slug sort="rating" %}" + <li><a href="{% url 'downloads-category' slug=category.slug sort="rating" %}" {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li> - <li><a href="{% url downloads-category slug=category.slug sort="hits" %}" + <li><a href="{% url 'downloads-category' slug=category.slug sort="hits" %}" {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> </ul>