annotate 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 |
rev |
line source |
bgneal@26
|
1 <div class="app-logo">
|
bgneal@26
|
2 <img src="{{ MEDIA_URL }}icons/downloads-logo.jpg" alt="Downloads Logo" title="Downloads" />
|
bgneal@26
|
3 </div>
|
bgneal@194
|
4 <form id="downloads-search" action="{% url downloads-search page=1 %}" method="post">{% csrf_token %}
|
gremmie@1
|
5 <p>{{ search_form.text }} <input type="submit" value="Search" /></p>
|
gremmie@1
|
6 </form>
|
gremmie@1
|
7 <ul class="app-menu">
|
gremmie@1
|
8 <li><a href="{% url downloads-index %}">Categories</a></li>
|
gremmie@1
|
9 <li><a href="{% url downloads-new %}">New</a></li>
|
gremmie@1
|
10 <li><a href="{% url downloads-popular %}">Popular</a></li>
|
gremmie@1
|
11 <li><a href="{% url downloads-rating %}">Highest Rated</a></li>
|
gremmie@1
|
12 <li><a href="{% url downloads-add %}">Add</a></li>
|
gremmie@1
|
13 </ul>
|
bgneal@208
|
14 <center>
|
bgneal@208
|
15 <form action="{% url downloads-random %}" method="post">{% csrf_token %}
|
bgneal@208
|
16 <input type="submit" title="Download a file at random" value="Surprise Me!" />
|
bgneal@208
|
17 </form>
|
bgneal@208
|
18 </center>
|