view gpp/templates/downloads/navigation.html @ 145:71cb4208dc98

Tweak to #30, admin dashboard. Because of a bug in Django (9568), my dashboard appears on the login page. To get around this, pass in the user to the templatetag, so it can do a 'if user.is_staff' check. Also tweaked the HTML and CSS to show non-zero pending items in red. Shortened the pending item titles for readability.
author Brian Neal <bgneal@gmail.com>
date Wed, 09 Dec 2009 00:03:10 +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>