##// END OF EJS Templates
Merge pull request #1158 from takluyver/nbpy-encoding-declaration...
Merge pull request #1158 from takluyver/nbpy-encoding-declaration Add coding header when notebook exported to .py file. Closes gh-1156, also strips the encoding declaration out when we load a .py file.

File last commit:

r5723:8326cad4
r5746:688cc09e merge
Show More
login.html
26 lines | 561 B | text/html | HtmlLexer
Stefan van der Walt
Use template inheritance.
r5324 {% extends layout.html %}
{% block content_panel %}
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722
{% if login_available %}
Stefan van der Walt
Use template inheritance.
r5324 <form action="/login?next={{url_escape(next)}}" method="post">
Stefan van der Walt
On the login page, focus on the password field.
r5720 Password: <input type="password" name="password" id="focus">
Stefan van der Walt
Use template inheritance.
r5324 <input type="submit" value="Sign in" id="signin">
</form>
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722
{% end %}
Stefan van der Walt
Use template inheritance.
r5324 {% end %}
Stefan van der Walt
On the login page, focus on the password field.
r5720
Stefan van der Walt
Hide top login/logout buttons on login/logout pages.
r5723 {% block login_widget %}
{% end %}
Stefan van der Walt
On the login page, focus on the password field.
r5720 {% block script %}
<script type="text/javascript">
$(document).ready(function() {
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
$('#focus').focus();
});
</script>
{% end %}