Permalink
Browse files

Hide logout button on unauthenticated notebook.

  • Loading branch information...
1 parent 670cf5d commit a97429f60fd11a37502cc6a82d8b8e5fe3954a1a @stefanv committed Nov 20, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 IPython/frontend/html/notebook/templates/notebook.html
@@ -59,9 +59,15 @@
<span id="quick_help_area">
<button id="quick_help">Quick<u>H</u>elp</button>
</span>
+
<span id="login_widget">
- <button id="logout">Logout</button>
+ {% comment This is a temporary workaround to hide the logout button %}
+ {% comment when appropriate until notebook.html is templated %}
+ {% if current_user and current_user != 'anonymous' %}
+ <button id="logout">Logout</button>
+ {% end %}
</span>
+
<span id="kernel_status">Idle</span>
</div>

0 comments on commit a97429f

Please sign in to comment.