Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Hide logout button on unauthenticated notebook.

  • Loading branch information...
commit a97429f60fd11a37502cc6a82d8b8e5fe3954a1a 1 parent 670cf5d
Stefan van der Walt authored November 20, 2011
8  IPython/frontend/html/notebook/templates/notebook.html
@@ -59,9 +59,15 @@
59 59
     <span id="quick_help_area">
60 60
       <button id="quick_help">Quick<u>H</u>elp</button>
61 61
     </span>
  62
+
62 63
     <span id="login_widget">
63  
-      <button id="logout">Logout</button>
  64
+      {% comment  This is a temporary workaround to hide the logout button %}
  65
+      {% comment  when appropriate until notebook.html is templated %}
  66
+      {% if current_user and current_user != 'anonymous' %}
  67
+        <button id="logout">Logout</button>
  68
+      {% end %}
64 69
     </span>
  70
+
65 71
     <span id="kernel_status">Idle</span>
66 72
 </div>
67 73
 

0 notes on commit a97429f

Please sign in to comment.
Something went wrong with that request. Please try again.