summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-30 22:01:13 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-30 22:01:13 -0400
commit8828419d9e1edc72ba37e8d8347caa3d4fc783de (patch)
tree190bd378adb5401eb4faa89210829de173804548
parentdc5a8986c66710fc9b1453a952d98e11cfcb1aaa (diff)
only show dev toolbar if user is logged in
-rw-r--r--templates/base.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html
index 4abc538b..75d65da0 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -28,15 +28,17 @@
{% endblock %}
</div>
<div id="dev_nav">
- <ul>
- <li><a href="/accounts/logout/">Logout</a></li>
- <li><a href="/devel/profile/">Profile</a></li>
- <li><a href="http://www.archlinux.org/mailman/private/arch-dev/">Archives</a></li>
- <li><a href="/todo/">Todos</a></li>
- <li><a href="/packages/signoffs/">Signoffs</a></li>
- <li><a href="/news/">News</a></li>
- <li><a href="/devel/">Dashboard</a></li>
- </ul>
+ {% if user.is_authenticated %}
+ <ul>
+ <li><a href="/accounts/logout/">Logout</a></li>
+ <li><a href="/devel/profile/">Profile</a></li>
+ <li><a href="http://www.archlinux.org/mailman/private/arch-dev/">Archives</a></li>
+ <li><a href="/todo/">Todos</a></li>
+ <li><a href="/packages/signoffs/">Signoffs</a></li>
+ <li><a href="/news/">News</a></li>
+ <li><a href="/devel/">Dashboard</a></li>
+ </ul>
+ {% endif %}
</div>
</div>
<div id="content">