view gpp/templates/downloads/navigation.html @ 322:c3d3d7114749

Fix #148; Django now requires AJAX posts to present the CSRF token. Added code suggested by Django docs to shoutbox.js. Since shoutbox.js is on every page, it should cover all cases.
author Brian Neal <bgneal@gmail.com>
date Sat, 12 Feb 2011 21:37:17 +0000
parents 88b2b9cb8c1f
children 41411066b16d
line wrap: on
line source
{% load url from future %}
<div class="app-logo">
<img src="{{ STATIC_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>
</ul>
<center>
   <form action="{% url 'downloads-random' %}" method="post">{% csrf_token %}
      <input type="submit" title="Download a file at random" value="Surprise Me!" />
   </form>
</center>