annotate 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 |
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>
|
gremmie@1
|
4 <form id="downloads-search" action="{% url downloads-search page=1 %}" method="post">
|
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-random %}">Random</a></li>
|
gremmie@1
|
13 <li><a href="{% url downloads-add %}">Add</a></li>
|
gremmie@1
|
14 </ul>
|