comparison gpp/templates/downloads/navigation.html @ 208:2022c0409296

Fix #76; use POST to get downloads to avoid having side-effects (updating hit count) on GETs.
author Brian Neal <bgneal@gmail.com>
date Wed, 05 May 2010 03:12:15 +0000
parents 6a5549c2efb5
children 27bee3ac85e6
comparison
equal deleted inserted replaced
207:8bbefaa3e408 208:2022c0409296
7 <ul class="app-menu"> 7 <ul class="app-menu">
8 <li><a href="{% url downloads-index %}">Categories</a></li> 8 <li><a href="{% url downloads-index %}">Categories</a></li>
9 <li><a href="{% url downloads-new %}">New</a></li> 9 <li><a href="{% url downloads-new %}">New</a></li>
10 <li><a href="{% url downloads-popular %}">Popular</a></li> 10 <li><a href="{% url downloads-popular %}">Popular</a></li>
11 <li><a href="{% url downloads-rating %}">Highest Rated</a></li> 11 <li><a href="{% url downloads-rating %}">Highest Rated</a></li>
12 <li><a href="{% url downloads-random %}">Random</a></li>
13 <li><a href="{% url downloads-add %}">Add</a></li> 12 <li><a href="{% url downloads-add %}">Add</a></li>
14 </ul> 13 </ul>
14 <center>
15 <form action="{% url downloads-random %}" method="post">{% csrf_token %}
16 <input type="submit" title="Download a file at random" value="Surprise Me!" />
17 </form>
18 </center>