##// 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
projectdashboard.html
43 lines | 1.1 KiB | text/html | HtmlLexer
Stefan van der Walt
Use template inheritance.
r5324 {% extends layout.html %}
{% block title %}
IPython Dashboard
{% end %}
{% block stylesheet %}
Andrew Straw
use Tornado's handler.static_url() in templates
r6002 <link rel="stylesheet" href="{{static_url("css/projectdashboard.css") }}" type="text/css" />
Stefan van der Walt
Add logout button.
r5325 {% end %}
{% block meta %}
<meta name="read_only" content="{{read_only}}"/>
{% end %}
{% block params %}
data-project={{project}}
data-base-project-url={{base_project_url}}
data-base-kernel-url={{base_kernel_url}}
Stefan van der Walt
Use template inheritance.
r5324 {% end %}
{% 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 logged_in or not read_only %}
Stefan van der Walt
Use template inheritance.
r5324 <div id="content_toolbar">
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 <span id="drag_info">Drag files onto the list to import
Stefan van der Walt
Improve three-state read-only logic.
r5721 notebooks.</span>
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 <span id="notebooks_buttons">
<button id="new_notebook">New Notebook</button>
</span>
Brian E. Granger
File upload/import working from notebook browser.
r4491 </div>
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 <div id="notebook_list">
<div id="project_name"><h2>{{project}}</h2></div>
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488 </div>
Stefan van der Walt
Use template inheritance.
r5324 {% end %}
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488
Stefan van der Walt
Use template inheritance.
r5324 {% block script %}
Andrew Straw
use Tornado's handler.static_url() in templates
r6002 <script src="{{static_url("js/notebooklist.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{static_url("js/projectdashboardmain.js") }}" type="text/javascript" charset="utf-8"></script>
Stefan van der Walt
Use template inheritance.
r5324 {% end %}