view gpp/templates/downloads/navigation.html @ 97:96eec1ed0fd3

Render the forum page navigation in the view with render_to_string() to avoid doing it twice in the template code. Also undo a mistake in the last commit. Need 2 different orderings for Post objects: by creation date in normal views, and by reverse creation date in the admin.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Sep 2009 19:58:31 +0000
parents db40c2754580
children 6a5549c2efb5
line wrap: on
line source
<div class="app-logo">
<img src="{{ MEDIA_URL }}icons/downloads-logo.jpg" alt="Downloads Logo" title="Downloads" />
</div>
<form id="downloads-search" action="{% url downloads-search page=1 %}" method="post">
    <p>{{ search_form.text }} <input type="submit" value="Search" /></p>
</form>
<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-random %}">Random</a></li>
    <li><a href="{% url downloads-add %}">Add</a></li>
</ul>