diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-10-31 03:01:13 +0100 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-10-31 03:01:13 +0100 |
commit | 8828419d9e1edc72ba37e8d8347caa3d4fc783de (patch) | |
tree | 190bd378adb5401eb4faa89210829de173804548 /templates | |
parent | dc5a8986c66710fc9b1453a952d98e11cfcb1aaa (diff) | |
download | archweb-8828419d9e1edc72ba37e8d8347caa3d4fc783de.tar.gz archweb-8828419d9e1edc72ba37e8d8347caa3d4fc783de.tar.xz |
only show dev toolbar if user is logged in
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html index 4abc538..75d65da 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"> |