##// END OF EJS Templates
Merge pull request #1079 from stefanv/htmlnotebook_login_button...
Merge pull request #1079 from stefanv/htmlnotebook_login_button Login/out button cleanups: - Display a login button when viewing the notebook in read-only mode. - On the login page, focus on the password field by default. - Correctly style login / logout buttons. - In read-only mode, redirect to "/" after logout, not "/login".

File last commit:

r5723:8326cad4
r5726:2bfc4492 merge
Show More
login.html
26 lines | 561 B | text/html | HtmlLexer
{% extends layout.html %}
{% block content_panel %}
{% if login_available %}
<form action="/login?next={{url_escape(next)}}" method="post">
Password: <input type="password" name="password" id="focus">
<input type="submit" value="Sign in" id="signin">
</form>
{% end %}
{% end %}
{% block login_widget %}
{% end %}
{% block script %}
<script type="text/javascript">
$(document).ready(function() {
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
$('#focus').focus();
});
</script>
{% end %}