Skip to content

Commit

Permalink
Hide top login/logout buttons on login/logout pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Dec 14, 2011
1 parent bd48758 commit 8326cad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
20 changes: 13 additions & 7 deletions IPython/frontend/html/notebook/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@

<div id="header">
<span id="ipython_notebook"><h1><img src='static/ipynblogo.png' alt='IPython Notebook'/></h1></span>
<span id="login_widget">
{% if logged_in %}
<button id="logout">Logout</button>
{% elif login_available and not logged_in %}
<button id="login">Login</button>
{% end %}
</span>

{% block login_widget %}

<span id="login_widget">
{% if logged_in %}
<button id="logout">Logout</button>
{% elif login_available and not logged_in %}
<button id="login">Login</button>
{% end %}
</span>

{% end %}

{% block header %}
{% end %}
</div>
Expand Down
3 changes: 3 additions & 0 deletions IPython/frontend/html/notebook/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

{% end %}

{% block login_widget %}
{% end %}

{% block script %}
<script type="text/javascript">
$(document).ready(function() {
Expand Down
3 changes: 3 additions & 0 deletions IPython/frontend/html/notebook/templates/logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

{% end %}

{% block login_widget %}
{% end %}

{% block script %}
<script type="text/javascript">
$(document).ready(function() {
Expand Down

0 comments on commit 8326cad

Please sign in to comment.