##// END OF EJS Templates
Display login button in read-only mode.
Display login button in read-only mode.

File last commit:

r5718:09bb9bd6
r5718:09bb9bd6
Show More
layout.html
79 lines | 2.0 KiB | text/html | HtmlLexer
Stefan van der Walt
Use template inheritance.
r5324 <!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 %}
Stefan van der Walt
Add logout button.
r5325 {% block meta %}
{% end %}
Stefan van der Walt
Use template inheritance.
r5324
</head>
Stefan van der Walt
Add logout button.
r5325 <body {% block params %}{% end %}>
Stefan van der Walt
Use template inheritance.
r5324
<div id="header">
Matthias BUSSONNIER
notebook : update logo...
r5702 <span id="ipython_notebook"><h1><img src='static/ipynblogo.png' alt='IPython Notebook'/></h1></span>
Stefan van der Walt
Add logout button.
r5325 <span id="login_widget">
Stefan van der Walt
Only show logout button if logged in.
r5327 {% if current_user and current_user != 'anonymous' %}
<button id="logout">Logout</button>
Stefan van der Walt
Display login button in read-only mode.
r5718 {% else %}
<button id="login">Login</button>
Stefan van der Walt
Only show logout button if logged in.
r5327 {% end %}
Stefan van der Walt
Use template inheritance.
r5324 </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 %}
Stefan van der Walt
Add info, error and warning message boxes.
r5326
{% for key in message %}
<div class="message {{key}}">
{{message[key]}}
</div>
{% end %}
Stefan van der Walt
Use template inheritance.
r5324 {% 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>