##// END OF EJS Templates
emit valid html:...
Bussonnier Matthias -
Show More
@@ -1,119 +1,119 b''
1 <!DOCTYPE HTML>
1 <!DOCTYPE HTML>
2 <html>
2 <html>
3
3
4 <head>
4 <head>
5 <meta charset="utf-8">
5 <meta charset="utf-8">
6
6
7 <title>{% block title %}IPython Notebook{% endblock %}</title>
7 <title>{% block title %}IPython Notebook{% endblock %}</title>
8 {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">{% endblock %}
8 {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">{% endblock %}
9 <meta http-equiv="X-UA-Compatible" content="chrome=1">
9 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
10 <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
10 <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
12
12
13 {% block stylesheet %}
13 {% block stylesheet %}
14 <link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/>
14 <link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/>
15 {% endblock %}
15 {% endblock %}
16 <link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" />
16 <link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" />
17 <script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script>
17 <script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script>
18 <script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
18 <script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
19 <script>
19 <script>
20 require.config({
20 require.config({
21 {% if version_hash %}
21 {% if version_hash %}
22 urlArgs: "v={{version_hash}}",
22 urlArgs: "v={{version_hash}}",
23 {% endif %}
23 {% endif %}
24 baseUrl: '{{static_url("", include_version=False)}}',
24 baseUrl: '{{static_url("", include_version=False)}}',
25 paths: {
25 paths: {
26 nbextensions : '{{ base_url }}nbextensions',
26 nbextensions : '{{ base_url }}nbextensions',
27 underscore : 'components/underscore/underscore-min',
27 underscore : 'components/underscore/underscore-min',
28 backbone : 'components/backbone/backbone-min',
28 backbone : 'components/backbone/backbone-min',
29 jquery: 'components/jquery/jquery.min',
29 jquery: 'components/jquery/jquery.min',
30 bootstrap: 'components/bootstrap/js/bootstrap.min',
30 bootstrap: 'components/bootstrap/js/bootstrap.min',
31 bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
31 bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
32 jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min',
32 jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min',
33 moment: 'components/moment/moment',
33 moment: 'components/moment/moment',
34 codemirror: 'components/codemirror',
34 codemirror: 'components/codemirror',
35 termjs: 'components/term.js/src/term',
35 termjs: 'components/term.js/src/term',
36 },
36 },
37 shim: {
37 shim: {
38 underscore: {
38 underscore: {
39 exports: '_'
39 exports: '_'
40 },
40 },
41 backbone: {
41 backbone: {
42 deps: ["underscore", "jquery"],
42 deps: ["underscore", "jquery"],
43 exports: "Backbone"
43 exports: "Backbone"
44 },
44 },
45 bootstrap: {
45 bootstrap: {
46 deps: ["jquery"],
46 deps: ["jquery"],
47 exports: "bootstrap"
47 exports: "bootstrap"
48 },
48 },
49 bootstraptour: {
49 bootstraptour: {
50 deps: ["bootstrap"],
50 deps: ["bootstrap"],
51 exports: "Tour"
51 exports: "Tour"
52 },
52 },
53 jqueryui: {
53 jqueryui: {
54 deps: ["jquery"],
54 deps: ["jquery"],
55 exports: "$"
55 exports: "$"
56 }
56 }
57 }
57 }
58 });
58 });
59
59
60 require.config({
60 require.config({
61 map: {
61 map: {
62 '*':{
62 '*':{
63 'contents': '{{ contents_js_source }}',
63 'contents': '{{ contents_js_source }}',
64 }
64 }
65 }
65 }
66 });
66 });
67 </script>
67 </script>
68
68
69 {% block meta %}
69 {% block meta %}
70 {% endblock %}
70 {% endblock %}
71
71
72 </head>
72 </head>
73
73
74 <body {% block params %}{% endblock %}>
74 <body {% block params %}{% endblock %}>
75
75
76 <noscript>
76 <noscript>
77 <div id='noscript'>
77 <div id='noscript'>
78 IPython Notebook requires JavaScript.<br>
78 IPython Notebook requires JavaScript.<br>
79 Please enable it to proceed.
79 Please enable it to proceed.
80 </div>
80 </div>
81 </noscript>
81 </noscript>
82
82
83 <div id="header" class="navbar navbar-fixed-top">
83 <div id="header" class="navbar navbar-fixed-top">
84 <div id="header-container" class="container">
84 <div id="header-container" class="container">
85 <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{base_url}}tree" alt='dashboard'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div>
85 <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{base_url}}tree" title='dashboard'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div>
86
86
87 {% block login_widget %}
87 {% block login_widget %}
88
88
89 <span id="login_widget">
89 <span id="login_widget">
90 {% if logged_in %}
90 {% if logged_in %}
91 <button id="logout" class="btn btn-sm navbar-btn">Logout</button>
91 <button id="logout" class="btn btn-sm navbar-btn">Logout</button>
92 {% elif login_available and not logged_in %}
92 {% elif login_available and not logged_in %}
93 <button id="login" class="btn btn-sm navbar-btn">Login</button>
93 <button id="login" class="btn btn-sm navbar-btn">Login</button>
94 {% endif %}
94 {% endif %}
95 </span>
95 </span>
96
96
97 {% endblock %}
97 {% endblock %}
98
98
99 {% block headercontainer %}
99 {% block headercontainer %}
100 {% endblock %}
100 {% endblock %}
101 </div>
101 </div>
102 <div class="header-bar"></div>
102 <div class="header-bar"></div>
103
103
104 {% block header %}
104 {% block header %}
105 {% endblock %}
105 {% endblock %}
106 </div>
106 </div>
107 <div id="header-spacer"></div>
107 <div id="header-spacer"></div>
108
108
109 <div id="site">
109 <div id="site">
110 {% block site %}
110 {% block site %}
111 {% endblock %}
111 {% endblock %}
112 </div>
112 </div>
113
113
114 {% block script %}
114 {% block script %}
115 {% endblock %}
115 {% endblock %}
116
116
117 </body>
117 </body>
118
118
119 </html>
119 </html>
@@ -1,154 +1,155 b''
1 {% extends "page.html" %}
1 {% extends "page.html" %}
2
2
3 {% block title %}{{page_title}}{% endblock %}
3 {% block title %}{{page_title}}{% endblock %}
4
4
5
5
6 {% block stylesheet %}
6 {% block stylesheet %}
7 {{super()}}
7 {{super()}}
8 <link rel="stylesheet" href="{{ static_url("tree/css/override.css") }}" type="text/css" />
8 <link rel="stylesheet" href="{{ static_url("tree/css/override.css") }}" type="text/css" />
9 {% endblock %}
9 {% endblock %}
10
10
11 {% block params %}
11 {% block params %}
12
12
13 data-base-url="{{base_url}}"
13 data-base-url="{{base_url}}"
14 data-notebook-path="{{notebook_path}}"
14 data-notebook-path="{{notebook_path}}"
15 data-terminals-available="{{terminals_available}}"
15 data-terminals-available="{{terminals_available}}"
16
16
17 {% endblock %}
17 {% endblock %}
18
18
19
19
20 {% block site %}
20 {% block site %}
21
21
22 <div id="ipython-main-app" class="container">
22 <div id="ipython-main-app" class="container">
23
23
24 <div id="tab_content" class="tabbable">
24 <div id="tab_content" class="tabbable">
25 <ul id="tabs" class="nav nav-tabs">
25 <ul id="tabs" class="nav nav-tabs">
26 <li class="active"><a href="#notebooks" data-toggle="tab">Notebooks</a></li>
26 <li class="active"><a href="#notebooks" data-toggle="tab">Notebooks</a></li>
27 <li><a href="#running" data-toggle="tab">Running</a></li>
27 <li><a href="#running" data-toggle="tab">Running</a></li>
28 {% if terminals_available %}
28 {% if terminals_available %}
29 <li><a href="#terminals" data-toggle="tab">Terminals</a></li>
29 <li><a href="#terminals" data-toggle="tab">Terminals</a></li>
30 {% endif %}
30 {% endif %}
31 <li><a href="#clusters" data-toggle="tab">Clusters</a></li>
31 <li><a href="#clusters" data-toggle="tab">Clusters</a></li>
32 </ul>
32 </ul>
33
33
34 <div class="tab-content">
34 <div class="tab-content">
35 <div id="notebooks" class="tab-pane active">
35 <div id="notebooks" class="tab-pane active">
36 <div id="notebook_toolbar" class="row">
36 <div id="notebook_toolbar" class="row">
37 <div class="col-sm-12 no-padding">
37 <div class="col-sm-12 no-padding">
38 <form id='alternate_upload' class='alternate_upload'>
38 <form id='alternate_upload' class='alternate_upload'>
39 <span id="notebook_list_info">
39 <span id="notebook_list_info">
40 To import a notebook, drag the file onto the listing below or
40 To import a notebook, drag the file onto the listing below or
41 <span class="input-overlay">
41 <span class="input-overlay">
42 <input type="file" name="datafile" class="fileinput" multiple='multiple'>
42 <input type="file" name="datafile" class="fileinput" multiple='multiple'>
43 click here.
43 click here.
44 </span>
44 </span>
45 </span>
45 </span>
46 </form>
46 </form>
47 <span id="notebook_buttons" class="pull-right">
47 <div id="notebook_buttons" class="pull-right">
48 <div id="new-notebook-buttons" class="btn-group">
48 <div id="new-notebook-buttons" class="btn-group">
49 <button id="new_notebook" class="btn btn-default btn-xs">
49 <button id="new_notebook" class="btn btn-default btn-xs">
50 New Notebook
50 New Notebook
51 </button>
51 </button>
52 <button class="dropdown-toggle btn btn-default btn-xs" data-toggle="dropdown">
52 <button class="dropdown-toggle btn btn-default btn-xs" data-toggle="dropdown">
53 <span id="current-kernel">Loading...</span>
53 <span id="current-kernel">Loading...</span>
54 <span class="caret"></span>
54 <span class="caret"></span>
55 </button>
55 </button>
56 <ul id="new-notebook-menu" class="dropdown-menu"></ul>
56 <ul id="new-notebook-menu" class="dropdown-menu"></ul>
57 </div>
57 </div>
58
58
59
59
60 <button id="refresh_notebook_list" title="Refresh notebook list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
60 <button id="refresh_notebook_list" title="Refresh notebook list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
61 </span>
61 </div>
62 </div>
62 </div>
63 </div>
63 </div>
64
64
65 <div id="notebook_list">
65 <div id="notebook_list">
66 <div id="notebook_list_header" class="row list_header">
66 <div id="notebook_list_header" class="row list_header">
67 <div id="project_name">
67 <div id="project_name">
68 <ul class="breadcrumb">
68 <ul class="breadcrumb">
69 <li><a href="{{breadcrumbs[0][0]}}"><i class="fa fa-home"></i></a></li>
69 <li><a href="{{breadcrumbs[0][0]}}"><i class="fa fa-home"></i></a></li>
70 {% for crumb in breadcrumbs[1:] %}
70 {% for crumb in breadcrumbs[1:] %}
71 <li><a href="{{crumb[0]}}">{{crumb[1]}}</a></li>
71 <li><a href="{{crumb[0]}}">{{crumb[1]}}</a></li>
72 {% endfor %}
72 {% endfor %}
73 </ul>
73 </ul>
74 </div>
74 </div>
75 </div>
75 </div>
76 </div>
76 </div>
77 </div>
77 </div>
78
78
79 <div id="running" class="tab-pane">
79 <div id="running" class="tab-pane">
80
80
81 <div id="running_toolbar" class="row">
81 <div id="running_toolbar" class="row">
82 <div class="col-sm-8 no-padding">
82 <div class="col-sm-8 no-padding">
83 <span id="running_list_info">Currently running IPython notebooks</span>
83 <span id="running_list_info">Currently running IPython notebooks</span>
84 </div>
84 </div>
85 <div class="col-sm-4 no-padding tree-buttons">
85 <div class="col-sm-4 no-padding tree-buttons">
86 <span id="running_buttons" class="pull-right">
86 <span id="running_buttons" class="pull-right">
87 <button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
87 <button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
88 </span>
88 </span>
89 </div>
89 </div>
90 </div>
90 </div>
91
91
92 <div id="running_list">
92 <div id="running_list">
93 <div id="running_list_header" class="row list_header">
93 <div id="running_list_header" class="row list_header">
94 <div> There are no notebooks running. </div>
94 <div> There are no notebooks running. </div>
95 </div>
95 </div>
96 </div>
96 </div>
97 </div>
97 </div>
98
98
99 {% if terminals_available %}
99 {% if terminals_available %}
100 <div id="terminals" class="tab-pane">
100 <div id="terminals" class="tab-pane">
101
101
102 <div id="terminal_toolbar" class="row">
102 <div id="terminal_toolbar" class="row">
103 <div class="col-xs-8 no-padding">
103 <div class="col-xs-8 no-padding">
104 <span id="terminal_list_info">Currently running terminals</span>
104 <span id="terminal_list_info">Currently running terminals</span>
105 </div>
105 </div>
106 <div class="col-xs-4 no-padding tree-buttons">
106 <div class="col-xs-4 no-padding tree-buttons">
107 <span id="terminal_buttons" class="pull-right">
107 <span id="terminal_buttons" class="pull-right">
108 <button id="new_terminal" title="New terminal" class="btn btn-default btn-xs">New Terminal</button>
108 <button id="new_terminal" title="New terminal" class="btn btn-default btn-xs">New Terminal</button>
109 <button id="refresh_terminal_list" title="Refresh terminal list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
109 <button id="refresh_terminal_list" title="Refresh terminal list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
110 </span>
110 </span>
111 </div>
111 </div>
112 </div>
112 </div>
113
113
114 <div id="terminal_list">
114 <div id="terminal_list">
115 <div id="terminal_list_header" class="row list_header">
115 <div id="terminal_list_header" class="row list_header">
116 <div> There are no terminals running. </div>
116 <div> There are no terminals running. </div>
117 </div>
117 </div>
118 </div>
118 </div>
119 </div>
119 </div>
120 {% endif %}
120 {% endif %}
121
121
122 <div id="clusters" class="tab-pane">
122 <div id="clusters" class="tab-pane">
123
123
124 <div id="cluster_toolbar" class="row">
124 <div id="cluster_toolbar" class="row">
125 <div class="col-xs-8 no-padding">
125 <div class="col-xs-8 no-padding">
126 <span id="cluster_list_info">IPython parallel computing clusters</span>
126 <span id="cluster_list_info">IPython parallel computing clusters</span>
127 </div>
127 </div>
128 <div class="col-xs-4 no-padding tree-buttons">
128 <div class="col-xs-4 no-padding tree-buttons">
129 <span id="cluster_buttons" class="pull-right">
129 <span id="cluster_buttons" class="pull-right">
130 <button id="refresh_cluster_list" title="Refresh cluster list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
130 <button id="refresh_cluster_list" title="Refresh cluster list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button>
131 </span>
131 </span>
132 </div>
132 </div>
133 </div>
133 </div>
134
134
135 <div id="cluster_list">
135 <div id="cluster_list">
136 <div id="cluster_list_header" class="row list_header">
136 <div id="cluster_list_header" class="row list_header">
137 <div class="profile_col col-xs-4">profile</div>
137 <div class="profile_col col-xs-4">profile</div>
138 <div class="status_col col-xs-3">status</div>
138 <div class="status_col col-xs-3">status</div>
139 <div class="engines_col col-xs-3" title="Enter the number of engines to start or empty for default"># of engines</div>
139 <div class="engines_col col-xs-3" title="Enter the number of engines to start or empty for default"># of engines</div>
140 <div class="action_col col-xs-2">action</div>
140 <div class="action_col col-xs-2">action</div>
141 </div>
141 </div>
142 </div>
142 </div>
143 </div>
143 </div>
144 </div>
144 </div>
145 </div><!-- tab_content -->
145
146
146 </div>
147 </div><!-- ipython-main-app -->
147
148
148 {% endblock %}
149 {% endblock %}
149
150
150 {% block script %}
151 {% block script %}
151 {{super()}}
152 {{super()}}
152
153
153 <script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
154 <script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
154 {% endblock %}
155 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now