Added a link to admin page under settings if you have permissions to use the admin...
authorBrandon King <kingb@caltech.edu>
Tue, 28 Apr 2009 21:39:08 +0000 (21:39 +0000)
committerBrandon King <kingb@caltech.edu>
Tue, 28 Apr 2009 21:39:08 +0000 (21:39 +0000)
templates/app.html

index 0531fa15304ab706fd3d0fe4f1dfd6530f7d8413..41053f5e37b74b79b37c31258ea4e3f33a480281 100644 (file)
@@ -49,6 +49,7 @@
             <div>
                 <h3><a href="#">Settings</a></h3>
                 <div>
+                    {% if user.is_staff %}<a href="/admin/">Admin</a>{% endif %}
                     <a href="{% url samplebc.samples.views.user_profile %}">Profile</a>
                     <a href="{% url django.contrib.auth.views.password_change %}">Change_PW</a>
                 </div>