##// END OF EJS Templates
Merge pull request #1332 from astraw/alternate-url-prefix...
Merge pull request #1332 from astraw/alternate-url-prefix notebook - allow prefixes in URL path. This closes #1329. The basic idea is to allow prefixes in the path served. (E.g. serve on http://localhost:8888/ipython/ instead of http://localhost:8888/ ) This is useful for running the ipython notebook behind a proxy serving other content at other URLs. In that case, one would also need to proxy the websockets. Also, clean up some static paths in our html/css files by using template function calls instead of hardcoded paths.

File last commit:

r6002:382069c9
r6012:69c627ca merge
Show More
layout.html
86 lines | 2.1 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>
Andrew Straw
use Tornado's handler.static_url() in templates
r6002 <link rel="stylesheet" href="{{static_url("jquery/css/themes/base/jquery-ui.min.css") }}" type="text/css" />
<link rel="stylesheet" href="{{static_url("css/boilerplate.css") }}" type="text/css" />
<link rel="stylesheet" href="{{static_url("css/layout.css") }}" type="text/css" />
<link rel="stylesheet" href="{{static_url("css/base.css") }}" type="text/css"/>
Stefan van der Walt
Use template inheritance.
r5324 {% 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">
Andrew Straw
use Tornado's handler.static_url() in templates
r6002 <span id="ipython_notebook"><h1><img src='{{static_url("ipynblogo.png") }}' alt='IPython Notebook'/></h1></span>
Stefan van der Walt
Hide top login/logout buttons on login/logout pages.
r5723
{% block login_widget %}
<span id="login_widget">
{% if logged_in %}
<button id="logout">Logout</button>
{% elif login_available and not logged_in %}
<button id="login">Login</button>
{% end %}
</span>
{% end %}
Stefan van der Walt
Use template inheritance.
r5324 {% 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>
Andrew Straw
use Tornado's handler.static_url() in templates
r6002 <script src="{{static_url("jquery/js/jquery-1.7.1.min.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{static_url("jquery/js/jquery-ui.min.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{static_url("js/namespace.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{static_url("js/loginmain.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{static_url("js/loginwidget.js") }}" type="text/javascript" charset="utf-8"></script>
Brian Granger
Initial work to add Wijmo based menu.
r5856
Stefan van der Walt
Use template inheritance.
r5324 {% block script %}
{% end %}
</body>
</html>