comparison 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
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% load url from future %}
1 <div class="app-logo"> 2 <div class="app-logo">
2 <img src="{{ MEDIA_URL }}icons/downloads-logo.jpg" alt="Downloads Logo" title="Downloads" /> 3 <img src="{{ MEDIA_URL }}icons/downloads-logo.jpg" alt="Downloads Logo" title="Downloads" />
3 </div> 4 </div>
4 <ul class="app-menu"> 5 <ul class="app-menu">
5 <li><a href="{% url downloads-index %}">Categories</a></li> 6 <li><a href="{% url 'downloads-index' %}">Categories</a></li>
6 <li><a href="{% url downloads-new %}">New</a></li> 7 <li><a href="{% url 'downloads-new' %}">New</a></li>
7 <li><a href="{% url downloads-popular %}">Popular</a></li> 8 <li><a href="{% url 'downloads-popular' %}">Popular</a></li>
8 <li><a href="{% url downloads-rating %}">Highest Rated</a></li> 9 <li><a href="{% url 'downloads-rating' %}">Highest Rated</a></li>
9 <li><a href="{% url downloads-add %}">Add</a></li> 10 <li><a href="{% url 'downloads-add' %}">Add</a></li>
10 </ul> 11 </ul>
11 <center> 12 <center>
12 <form action="{% url downloads-random %}" method="post">{% csrf_token %} 13 <form action="{% url 'downloads-random' %}" method="post">{% csrf_token %}
13 <input type="submit" title="Download a file at random" value="Surprise Me!" /> 14 <input type="submit" title="Download a file at random" value="Surprise Me!" />
14 </form> 15 </form>
15 </center> 16 </center>