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