Mercurial > public > sg101
diff gpp/templates/downloads/navigation.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/navigation.html Mon Jan 17 04:00:59 2011 +0000 +++ b/gpp/templates/downloads/navigation.html Thu Jan 20 04:03:48 2011 +0000 @@ -1,15 +1,16 @@ +{% load url from future %} <div class="app-logo"> <img src="{{ MEDIA_URL }}icons/downloads-logo.jpg" alt="Downloads Logo" title="Downloads" /> </div> <ul class="app-menu"> - <li><a href="{% url downloads-index %}">Categories</a></li> - <li><a href="{% url downloads-new %}">New</a></li> - <li><a href="{% url downloads-popular %}">Popular</a></li> - <li><a href="{% url downloads-rating %}">Highest Rated</a></li> - <li><a href="{% url downloads-add %}">Add</a></li> + <li><a href="{% url 'downloads-index' %}">Categories</a></li> + <li><a href="{% url 'downloads-new' %}">New</a></li> + <li><a href="{% url 'downloads-popular' %}">Popular</a></li> + <li><a href="{% url 'downloads-rating' %}">Highest Rated</a></li> + <li><a href="{% url 'downloads-add' %}">Add</a></li> </ul> <center> - <form action="{% url downloads-random %}" method="post">{% csrf_token %} + <form action="{% url 'downloads-random' %}" method="post">{% csrf_token %} <input type="submit" title="Download a file at random" value="Surprise Me!" /> </form> </center>