Skip to content

Commit

Permalink
Hide logout button on unauthenticated notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Nov 20, 2011
1 parent 670cf5d commit a97429f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion IPython/frontend/html/notebook/templates/notebook.html
Expand Up @@ -59,9 +59,15 @@
<span id="quick_help_area"> <span id="quick_help_area">
<button id="quick_help">Quick<u>H</u>elp</button> <button id="quick_help">Quick<u>H</u>elp</button>
</span> </span>

<span id="login_widget"> <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>

<span id="kernel_status">Idle</span> <span id="kernel_status">Idle</span>
</div> </div>


Expand Down

0 comments on commit a97429f

Please sign in to comment.