Mercurial > public > sg101
view gpp/templates/downloads/navigation.html @ 388:c3231af55778
For #191; r410 is wrong: it is returning the wrong posts. Rework. MySQL is not using an index on our query, and it is taking 10+ seconds. Replace this slow query with a loop that loops over the public forums, then sorts and returns the posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 19 Mar 2011 05:03:51 +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>