Skip to content

Commit

Permalink
add admin link to header bar for staff
Browse files Browse the repository at this point in the history
  • Loading branch information
Justine Tunney committed Aug 23, 2011
1 parent 7390cff commit c896254
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions occupywallst/templates/occupywallst/base.html
Expand Up @@ -25,8 +25,11 @@
<header>
<div id="userbox">
{% if user.is_authenticated %}
Welcome <a href="{{ user.get_absolute_url }}">{{ user.username }}</a>
&mdash; <a href="/logout/">logout</a>
Welcome <a href="{{ user.get_absolute_url }}">{{ user.username }}</a> |
{% if user.is_staff %}
<a href="/admin/">admin</a> |
{% endif %}
<a href="/logout/">logout</a>
{% else %}
Welcome!
<a href="/login/">login</a> |
Expand Down

0 comments on commit c896254

Please sign in to comment.