##// END OF EJS Templates
Hide top login/logout buttons on login/logout pages.
Stefan van der Walt -
Show More
@@ -22,13 +22,19 b''
22
22
23 <div id="header">
23 <div id="header">
24 <span id="ipython_notebook"><h1><img src='static/ipynblogo.png' alt='IPython Notebook'/></h1></span>
24 <span id="ipython_notebook"><h1><img src='static/ipynblogo.png' alt='IPython Notebook'/></h1></span>
25 <span id="login_widget">
25
26 {% if logged_in %}
26 {% block login_widget %}
27 <button id="logout">Logout</button>
27
28 {% elif login_available and not logged_in %}
28 <span id="login_widget">
29 <button id="login">Login</button>
29 {% if logged_in %}
30 {% end %}
30 <button id="logout">Logout</button>
31 </span>
31 {% elif login_available and not logged_in %}
32 <button id="login">Login</button>
33 {% end %}
34 </span>
35
36 {% end %}
37
32 {% block header %}
38 {% block header %}
33 {% end %}
39 {% end %}
34 </div>
40 </div>
@@ -13,6 +13,9 b''
13
13
14 {% end %}
14 {% end %}
15
15
16 {% block login_widget %}
17 {% end %}
18
16 {% block script %}
19 {% block script %}
17 <script type="text/javascript">
20 <script type="text/javascript">
18 $(document).ready(function() {
21 $(document).ready(function() {
@@ -16,6 +16,9 b''
16
16
17 {% end %}
17 {% end %}
18
18
19 {% block login_widget %}
20 {% end %}
21
19 {% block script %}
22 {% block script %}
20 <script type="text/javascript">
23 <script type="text/javascript">
21 $(document).ready(function() {
24 $(document).ready(function() {
General Comments 0
You need to be logged in to leave comments. Login now