Merge branch 'logout_button' of https://github.com/stefanv/ipython into stefanv-logout_button
Add a logout button to authenticated notebooks. This has no impact on regular (non-authenticated) notebooks.pull/37/head
commit
1e9cee6f10
@ -0,0 +1,77 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>{% block title %}IPython Notebook{% end %}</title>
|
||||
|
||||
<link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/layout.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/base.css" type="text/css"/>
|
||||
{% block stylesheet %}
|
||||
{% end %}
|
||||
|
||||
{% block meta %}
|
||||
{% end %}
|
||||
|
||||
</head>
|
||||
|
||||
<body {% block params %}{% end %}>
|
||||
|
||||
<div id="header">
|
||||
<span id="ipython_notebook"><h1>IPython Notebook</h1></span>
|
||||
<span id="login_widget">
|
||||
{% if current_user and current_user != 'anonymous' %}
|
||||
<button id="logout">Logout</button>
|
||||
{% end %}
|
||||
</span>
|
||||
{% block header %}
|
||||
{% end %}
|
||||
</div>
|
||||
|
||||
<div id="header_border"></div>
|
||||
|
||||
<div id="main_app">
|
||||
|
||||
<div id="app_hbox">
|
||||
|
||||
<div id="left_panel">
|
||||
{% block left_panel %}
|
||||
{% end %}
|
||||
</div>
|
||||
|
||||
<div id="content_panel">
|
||||
{% if message %}
|
||||
|
||||
{% for key in message %}
|
||||
<div class="message {{key}}">
|
||||
{{message[key]}}
|
||||
</div>
|
||||
{% end %}
|
||||
{% end %}
|
||||
|
||||
{% block content_panel %}
|
||||
{% end %}
|
||||
</div>
|
||||
<div id="right_panel">
|
||||
{% block right_panel %}
|
||||
{% end %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/loginmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
{% block script %}
|
||||
{% end %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -1,61 +1,8 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>IPython Notebook</title>
|
||||
|
||||
<link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/layout.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/base.css" type="text/css" />
|
||||
|
||||
<meta name="read_only" content="{{read_only}}"/>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<span id="ipython_notebook"><h1>IPython Notebook</h1></span>
|
||||
</div>
|
||||
|
||||
<div id="header_border"></div>
|
||||
|
||||
<div id="main_app">
|
||||
|
||||
<div id="app_hbox">
|
||||
|
||||
<div id="left_panel">
|
||||
</div>
|
||||
|
||||
<div id="content_panel">
|
||||
{% if message %}
|
||||
<div id="message">
|
||||
{{message}}
|
||||
</div>
|
||||
{% end %}
|
||||
|
||||
<form action="/login?next={{url_escape(next)}}" method="post">
|
||||
Password: <input type="password" name="password">
|
||||
<input type="submit" value="Sign in" id="signin">
|
||||
</form>
|
||||
</div>
|
||||
<div id="right_panel">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/loginmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
{% extends layout.html %}
|
||||
|
||||
{% block content_panel %}
|
||||
<form action="/login?next={{url_escape(next)}}" method="post">
|
||||
Password: <input type="password" name="password">
|
||||
<input type="submit" value="Sign in" id="signin">
|
||||
</form>
|
||||
{% end %}
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{% extends layout.html %}
|
||||
|
||||
{% block content_panel %}
|
||||
Proceed to the <a href="/login">login page</a>.
|
||||
{% end %}
|
||||
@ -1,69 +1,36 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
{% extends layout.html %}
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{% block title %}
|
||||
IPython Dashboard
|
||||
{% end %}
|
||||
|
||||
<title>IPython Dashboard</title>
|
||||
|
||||
<link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/layout.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/base.css" type="text/css" />
|
||||
{% block stylesheet %}
|
||||
<link rel="stylesheet" href="static/css/projectdashboard.css" type="text/css" />
|
||||
{% end %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="read_only" content="{{read_only}}"/>
|
||||
|
||||
</head>
|
||||
|
||||
<body data-project={{project}} data-base-project-url={{base_project_url}}
|
||||
data-base-kernel-url={{base_kernel_url}}>
|
||||
|
||||
<div id="header">
|
||||
<span id="ipython_notebook"><h1>IPython Notebook</h1></span>
|
||||
<span id="login_widget" class="hidden">
|
||||
<button id="login">Login</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="header_border"></div>
|
||||
|
||||
<div id="main_app">
|
||||
|
||||
<div id="app_hbox">
|
||||
|
||||
<div id="left_panel">
|
||||
</div>
|
||||
|
||||
<div id="content_panel">
|
||||
<div id="content_toolbar">
|
||||
<span id="drag_info">Drag files onto the list to import notebooks.</span>
|
||||
<span id="notebooks_buttons">
|
||||
<button id="new_notebook">New Notebook</button>
|
||||
</span>
|
||||
</div>
|
||||
<div id="notebook_list">
|
||||
<div id="project_name"><h2>{{project}}</h2></div>
|
||||
</div>
|
||||
|
||||
{% end %}
|
||||
|
||||
{% block params %}
|
||||
data-project={{project}}
|
||||
data-base-project-url={{base_project_url}}
|
||||
data-base-kernel-url={{base_kernel_url}}
|
||||
{% end %}
|
||||
|
||||
{% block content_panel %}
|
||||
<div id="content_toolbar">
|
||||
<span id="drag_info">Drag files onto the list to import notebooks.</span>
|
||||
<span id="notebooks_buttons">
|
||||
<button id="new_notebook">New Notebook</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="right_panel">
|
||||
<div id="notebook_list">
|
||||
<div id="project_name"><h2>{{project}}</h2></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/notebooklist.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/projectdashboardmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
{% end %}
|
||||
|
||||
{% block script %}
|
||||
<script src="static/js/notebooklist.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/projectdashboardmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
{% end %}
|
||||
|
||||
Loading…
Reference in new issue