Mercurial > public > sg101
diff gpp/templates/weblinks/view_links.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 | 7e8d2dda99e3 |
children | 88b2b9cb8c1f |
line wrap: on
line diff
--- a/gpp/templates/weblinks/view_links.html Mon Jan 17 04:00:59 2011 +0000 +++ b/gpp/templates/weblinks/view_links.html Thu Jan 20 04:03:48 2011 +0000 @@ -1,4 +1,5 @@ {% extends 'weblinks/base.html' %} +{% load url from future %} {% block title %}Web Links: {{ category.title }}{% endblock %} {% block weblinks_css %} <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" /> @@ -12,11 +13,11 @@ {% if page.object_list %} <ul class="tab-nav"> - <li><a href="{% url weblinks-view_links slug=category.slug sort="title" %}" + <li><a href="{% url 'weblinks-view_links' slug=category.slug sort="title" %}" {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> - <li><a href="{% url weblinks-view_links slug=category.slug sort="date" %}" + <li><a href="{% url 'weblinks-view_links' slug=category.slug sort="date" %}" {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> - <li><a href="{% url weblinks-view_links slug=category.slug sort="hits" %}" + <li><a href="{% url 'weblinks-view_links' slug=category.slug sort="hits" %}" {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> </ul>