##// END OF EJS Templates
Merge pull request #1480 from minrk/npmagic...
Merge pull request #1480 from minrk/npmagic Fix %notebook magic, etc. nbformat unicode tests and fixes. * json.writes always gives unicode, so that `current.writes` can be trusted to give the same interface * setup base TestCase for nbformat tests, to consolidate code, and better test both file formats * add tests for reading/writing to files * allow `name` as kwarg to new_notebook to avoid unnecessary breakage of previous API. * remove fallback to xml, which would hide corrupt notebook files behind a nonsensical 'xml unsupported' message. Closes #1545, #1487.

File last commit:

r6192:a53b1a9f
r6479:c4cf9403 merge
Show More
logout.html
40 lines | 707 B | text/html | HtmlLexer
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% extends page.html %}
Stefan van der Walt
Add logout button.
r5325
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% block stylesheet %}
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
Brian Granger
Refactoring templates and top level js/css organization.
r6192 <link rel="stylesheet" href="{{static_url("css/logout.css") }}" type="text/css"/>
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
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% end %}
{% block login_widget %}
{% end %}
{% block site %}
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
Brian Granger
Refactoring templates and top level js/css organization.
r6192 <div id="main_app">
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
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% if message %}
{% for key in message %}
<div class="message {{key}}">
{{message[key]}}
</div>
{% end %}
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 %}
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% if read_only or not login_available %}
Proceed to the <a href="/">dashboard</a>.
{% else %}
Proceed to the <a href="/login">login page</a>.
{% end %}
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
Stefan van der Walt
On the login page, focus on the password field.
r5720
Brian Granger
Refactoring templates and top level js/css organization.
r6192 <div/>
Stefan van der Walt
Hide top login/logout buttons on login/logout pages.
r5723 {% end %}
Stefan van der Walt
On the login page, focus on the password field.
r5720 {% block script %}
Brian Granger
Refactoring templates and top level js/css organization.
r6192
<script src="{{static_url("js/logoutmain.js") }}" type="text/javascript" charset="utf-8"></script>
Stefan van der Walt
On the login page, focus on the password field.
r5720 {% end %}