##// END OF EJS Templates
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.

File last commit:

r5722:bd487586
r5722:bd487586
Show More
logout.html
25 lines | 459 B | text/html | HtmlLexer
{% extends layout.html %}
{% block content_panel %}
<ul>
{% if read_only or not login_available %}
Proceed to the <a href="/">list of notebooks</a>.</li>
{% else %}
Proceed to the <a href="/login">login page</a>.</li>
{% end %}
</ul>
{% end %}
{% block script %}
<script type="text/javascript">
$(document).ready(function() {
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
});
</script>
{% end %}