Show More
@@ -1,219 +1,222 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 params %} |
|
6 | {% block params %} | |
7 |
|
7 | |||
8 | data-base-url="{{base_url}}" |
|
8 | data-base-url="{{base_url}}" | |
9 | data-notebook-path="{{notebook_path}}" |
|
9 | data-notebook-path="{{notebook_path}}" | |
10 | data-terminals-available="{{terminals_available}}" |
|
10 | data-terminals-available="{{terminals_available}}" | |
11 |
|
11 | |||
12 | {% endblock %} |
|
12 | {% endblock %} | |
13 |
|
13 | |||
14 |
|
14 | |||
15 | {% block site %} |
|
15 | {% block site %} | |
16 |
|
16 | |||
17 | <div id="ipython-main-app" class="container"> |
|
17 | <div id="ipython-main-app" class="container"> | |
18 | <div id="tab_content" class="tabbable"> |
|
18 | <div id="tab_content" class="tabbable"> | |
19 | <ul id="tabs" class="nav nav-tabs"> |
|
19 | <ul id="tabs" class="nav nav-tabs"> | |
20 | <li class="active"><a href="#notebooks" data-toggle="tab">Files</a></li> |
|
20 | <li class="active"><a href="#notebooks" data-toggle="tab">Files</a></li> | |
21 | <li><a href="#running" data-toggle="tab">Running</a></li> |
|
21 | <li><a href="#running" data-toggle="tab">Running</a></li> | |
22 | <li><a href="#clusters" data-toggle="tab">Clusters</a></li> |
|
22 | <li><a href="#clusters" data-toggle="tab">Clusters</a></li> | |
23 | </ul> |
|
23 | </ul> | |
24 | <div class="tab-content"> |
|
24 | <div class="tab-content"> | |
25 | <div id="notebooks" class="tab-pane active"> |
|
25 | <div id="notebooks" class="tab-pane active"> | |
26 | <div id="notebook_toolbar" class="row"> |
|
26 | <div id="notebook_toolbar" class="row"> | |
27 | <div class="col-sm-8 no-padding"> |
|
27 | <div class="col-sm-8 no-padding"> | |
28 | <form id='alternate_upload' class='alternate_upload'> |
|
28 | <form id='alternate_upload' class='alternate_upload'> | |
29 | <span id="notebook_list_info"> |
|
29 | <span id="notebook_list_info"> | |
30 | To import a notebook, drag the file onto the listing below or |
|
30 | To import a notebook, drag the file onto the listing below or | |
31 | <span class="input-overlay"> |
|
31 | <span class="input-overlay"> | |
32 | <input type="file" name="datafile" class="fileinput" multiple='multiple'> |
|
32 | <input type="file" name="datafile" class="fileinput" multiple='multiple'> | |
33 | click here. |
|
33 | click here. | |
34 | </span> |
|
34 | </span> | |
35 | </span> |
|
35 | </span> | |
36 | </form> |
|
36 | </form> | |
37 | </div> |
|
37 | </div> | |
38 | <div class="col-sm-4 no-padding tree-buttons"> |
|
38 | <div class="col-sm-4 no-padding tree-buttons"> | |
39 | <div class="pull-right"> |
|
39 | <div class="pull-right"> | |
40 | <div class="dynamic-buttons"> |
|
40 | <div class="dynamic-buttons"> | |
41 | <button title="Duplicate selected" class="duplicate-button btn btn-default btn-xs">Duplicate</button> |
|
41 | <button title="Duplicate selected" class="duplicate-button btn btn-default btn-xs">Duplicate</button> | |
42 | <button title="Rename selected" class="rename-button btn btn-default btn-xs">Rename</button> |
|
42 | <button title="Rename selected" class="rename-button btn btn-default btn-xs">Rename</button> | |
43 | <button title="Shutdown selected notebook(s)" class="shutdown-button btn btn-default btn-xs btn-warning">Shutdown</button> |
|
43 | <button title="Shutdown selected notebook(s)" class="shutdown-button btn btn-default btn-xs btn-warning">Shutdown</button> | |
44 | <button title="Deleted selected" class="delete-button btn btn-default btn-xs btn-danger"><i class="fa fa-trash"></i></button> |
|
44 | <button title="Deleted selected" class="delete-button btn btn-default btn-xs btn-danger"><i class="fa fa-trash"></i></button> | |
45 | </div> |
|
45 | </div> | |
46 | <div id="new-buttons" class="btn-group"> |
|
46 | <div id="new-buttons" class="btn-group"> | |
47 | <button class="dropdown-toggle btn btn-default btn-xs" data-toggle="dropdown"> |
|
47 | <button class="dropdown-toggle btn btn-default btn-xs" data-toggle="dropdown"> | |
48 | <span>New</span> |
|
48 | <span>New</span> | |
49 | <span class="caret"></span> |
|
49 | <span class="caret"></span> | |
50 | </button> |
|
50 | </button> | |
51 | <ul id="new-menu" class="dropdown-menu"> |
|
51 | <ul id="new-menu" class="dropdown-menu"> | |
52 | <li role="presentation" id="new-file"> |
|
52 | <li role="presentation" id="new-file"> | |
53 | <a role="menuitem" tabindex="-1" href="#">Text File</a> |
|
53 | <a role="menuitem" tabindex="-1" href="#">Text File</a> | |
54 | </li> |
|
54 | </li> | |
55 | <li role="presentation" id="new-folder"> |
|
55 | <li role="presentation" id="new-folder"> | |
56 | <a role="menuitem" tabindex="-1" href="#">Folder</a> |
|
56 | <a role="menuitem" tabindex="-1" href="#">Folder</a> | |
57 | </li> |
|
57 | </li> | |
58 | {% if terminals_available %} |
|
58 | {% if terminals_available %} | |
59 | <li role="presentation" id="new-terminal"> |
|
59 | <li role="presentation" id="new-terminal"> | |
60 | <a role="menuitem" tabindex="-1" href="#">Terminal</a> |
|
60 | <a role="menuitem" tabindex="-1" href="#">Terminal</a> | |
61 | </li> |
|
61 | </li> | |
62 | {% else %} |
|
62 | {% else %} | |
63 | <li role="presentation" id="new-terminal-disabled" class="disabled"> |
|
63 | <li role="presentation" id="new-terminal-disabled" class="disabled"> | |
64 | <a role="menuitem" tabindex="-1" href="#">Terminals Unavailable</a> |
|
64 | <a role="menuitem" tabindex="-1" href="#">Terminals Unavailable</a> | |
65 | </li> |
|
65 | </li> | |
66 | {% endif %} |
|
66 | {% endif %} | |
67 | <li role="presentation" class="divider"></li> |
|
67 | <li role="presentation" class="divider"></li> | |
68 | <li role="presentation" class="dropdown-header" id="notebook-kernels">Notebooks</li> |
|
68 | <li role="presentation" class="dropdown-header" id="notebook-kernels">Notebooks</li> | |
69 | </ul> |
|
69 | </ul> | |
70 | </div> |
|
70 | </div> | |
71 | <div class="btn-group"> |
|
71 | <div class="btn-group"> | |
72 | <button id="refresh_notebook_list" title="Refresh notebook list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> |
|
72 | <button id="refresh_notebook_list" title="Refresh notebook list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> | |
73 | </div> |
|
73 | </div> | |
74 | </div> |
|
74 | </div> | |
75 | </div> |
|
75 | </div> | |
76 | </div> |
|
76 | </div> | |
77 | <div id="notebook_list"> |
|
77 | <div id="notebook_list"> | |
78 | <div id="notebook_list_header" class="row list_header"> |
|
78 | <div id="notebook_list_header" class="row list_header"> | |
79 | <div class="btn-group dropdown" id='tree-selector'> |
|
79 | <div class="btn-group dropdown" id='tree-selector'> | |
80 |
<button type="button" class="btn btn-default btn-xs"> |
|
80 | <button type="button" class="btn btn-default btn-xs"> | |
|
81 | <span class="badge pull-right" id="badge-select-all"></span> | |||
|
82 | <input type="checkbox" class="tree-selector" id="select-all"></input> | |||
|
83 | </button> | |||
81 | <button class="btn btn-default btn-xs dropdown-toggle" type="button" id="tree-selector-btn" aria-expanded="true"> |
|
84 | <button class="btn btn-default btn-xs dropdown-toggle" type="button" id="tree-selector-btn" aria-expanded="true"> | |
82 | <span class="caret"></span> |
|
85 | <span class="caret"></span> | |
83 | <span class="sr-only">Toggle Dropdown</span> |
|
86 | <span class="sr-only">Toggle Dropdown</span> | |
84 | </button> |
|
87 | </button> | |
85 | <ul id="tree-selector-menu" class="dropdown-menu" role="menu" aria-labelledby="tree-selector-btn"> |
|
88 | <ul id="tree-selector-menu" class="dropdown-menu" role="menu" aria-labelledby="tree-selector-btn"> | |
86 | <li role="presentation"> |
|
89 | <li role="presentation"> | |
87 | <a role="menuitem"> |
|
90 | <a role="menuitem"> | |
88 | <span class="badge pull-right" id="badge-select-folders"></span> |
|
91 | <span class="badge pull-right" id="badge-select-folders"></span> | |
89 | <input type="checkbox" class="tree-selector" id="select-folders"></input> |
|
92 | <input type="checkbox" class="tree-selector" id="select-folders"></input> | |
90 | <label for="select-folders"> |
|
93 | <label for="select-folders"> | |
91 | <i class="folder_icon icon-fixed-width"></i> |
|
94 | <i class="folder_icon icon-fixed-width"></i> | |
92 | Folders |
|
95 | Folders | |
93 | </label> |
|
96 | </label> | |
94 | </a> |
|
97 | </a> | |
95 | </li> |
|
98 | </li> | |
96 | <li role="presentation"> |
|
99 | <li role="presentation"> | |
97 | <a role="menuitem"> |
|
100 | <a role="menuitem"> | |
98 | <span class="badge pull-right" id="badge-select-notebooks"></span> |
|
101 | <span class="badge pull-right" id="badge-select-notebooks"></span> | |
99 | <input type="checkbox" class="tree-selector" id="select-notebooks"></input> |
|
102 | <input type="checkbox" class="tree-selector" id="select-notebooks"></input> | |
100 | <label for="select-notebooks"> |
|
103 | <label for="select-notebooks"> | |
101 | <i class="notebook_icon icon-fixed-width"></i> |
|
104 | <i class="notebook_icon icon-fixed-width"></i> | |
102 | All Notebooks |
|
105 | All Notebooks | |
103 | </label> |
|
106 | </label> | |
104 | </a> |
|
107 | </a> | |
105 | </li> |
|
108 | </li> | |
106 | <li role="presentation"> |
|
109 | <li role="presentation"> | |
107 | <a role="menuitem"> |
|
110 | <a role="menuitem"> | |
108 | <span class="badge pull-right" id="badge-select-running-notebooks"></span> |
|
111 | <span class="badge pull-right" id="badge-select-running-notebooks"></span> | |
109 | <input type="checkbox" class="tree-selector" id="select-running-notebooks"></input> |
|
112 | <input type="checkbox" class="tree-selector" id="select-running-notebooks"></input> | |
110 | <label for="select-running-notebooks"> |
|
113 | <label for="select-running-notebooks"> | |
111 | <i class="running_notebook_icon icon-fixed-width"></i> |
|
114 | <i class="running_notebook_icon icon-fixed-width"></i> | |
112 | Running |
|
115 | Running | |
113 | </label> |
|
116 | </label> | |
114 | </a> |
|
117 | </a> | |
115 | </li> |
|
118 | </li> | |
116 | <li role="presentation"> |
|
119 | <li role="presentation"> | |
117 | <a role="menuitem"> |
|
120 | <a role="menuitem"> | |
118 | <span class="badge pull-right" id="badge-select-files"></span> |
|
121 | <span class="badge pull-right" id="badge-select-files"></span> | |
119 | <input type="checkbox" class="tree-selector" id="select-files"></input> |
|
122 | <input type="checkbox" class="tree-selector" id="select-files"></input> | |
120 | <label for="select-files"> |
|
123 | <label for="select-files"> | |
121 | <i class="file_icon icon-fixed-width"></i> |
|
124 | <i class="file_icon icon-fixed-width"></i> | |
122 | Files |
|
125 | Files | |
123 | </label> |
|
126 | </label> | |
124 | </a> |
|
127 | </a> | |
125 | </li> |
|
128 | </li> | |
126 | </ul> |
|
129 | </ul> | |
127 | </div> |
|
130 | </div> | |
128 | <div id="project_name"> |
|
131 | <div id="project_name"> | |
129 | <ul class="breadcrumb"> |
|
132 | <ul class="breadcrumb"> | |
130 | <li><a href="{{breadcrumbs[0][0]}}"><i class="fa fa-home"></i></a></li> |
|
133 | <li><a href="{{breadcrumbs[0][0]}}"><i class="fa fa-home"></i></a></li> | |
131 | {% for crumb in breadcrumbs[1:] %} |
|
134 | {% for crumb in breadcrumbs[1:] %} | |
132 | <li><a href="{{crumb[0]}}">{{crumb[1]}}</a></li> |
|
135 | <li><a href="{{crumb[0]}}">{{crumb[1]}}</a></li> | |
133 | {% endfor %} |
|
136 | {% endfor %} | |
134 | </ul> |
|
137 | </ul> | |
135 | </div> |
|
138 | </div> | |
136 | </div> |
|
139 | </div> | |
137 | </div> |
|
140 | </div> | |
138 | </div> |
|
141 | </div> | |
139 | <div id="running" class="tab-pane"> |
|
142 | <div id="running" class="tab-pane"> | |
140 | <div id="running_toolbar" class="row"> |
|
143 | <div id="running_toolbar" class="row"> | |
141 | <div class="col-sm-8 no-padding"> |
|
144 | <div class="col-sm-8 no-padding"> | |
142 | <span id="running_list_info">Currently running Jupyter processes</span> |
|
145 | <span id="running_list_info">Currently running Jupyter processes</span> | |
143 | </div> |
|
146 | </div> | |
144 | <div class="col-sm-4 no-padding tree-buttons"> |
|
147 | <div class="col-sm-4 no-padding tree-buttons"> | |
145 | <span id="running_buttons" class="pull-right"> |
|
148 | <span id="running_buttons" class="pull-right"> | |
146 | <button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> |
|
149 | <button id="refresh_running_list" title="Refresh running list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> | |
147 | </span> |
|
150 | </span> | |
148 | </div> |
|
151 | </div> | |
149 | </div> |
|
152 | </div> | |
150 | <div class="panel-group" id="accordion" > |
|
153 | <div class="panel-group" id="accordion" > | |
151 | <div class="panel panel-default"> |
|
154 | <div class="panel panel-default"> | |
152 | <div class="panel-heading"> |
|
155 | <div class="panel-heading"> | |
153 | <a data-toggle="collapse" data-target="#collapseOne" href="#"> |
|
156 | <a data-toggle="collapse" data-target="#collapseOne" href="#"> | |
154 | Terminals |
|
157 | Terminals | |
155 | </a> |
|
158 | </a> | |
156 | </div> |
|
159 | </div> | |
157 | <div id="collapseOne" class=" collapse in"> |
|
160 | <div id="collapseOne" class=" collapse in"> | |
158 | <div class="panel-body"> |
|
161 | <div class="panel-body"> | |
159 | <div id="terminal_list"> |
|
162 | <div id="terminal_list"> | |
160 | <div id="terminal_list_header" class="row list_header"> |
|
163 | <div id="terminal_list_header" class="row list_header"> | |
161 | {% if terminals_available %} |
|
164 | {% if terminals_available %} | |
162 | <div> There are no terminals running. </div> |
|
165 | <div> There are no terminals running. </div> | |
163 | {% else %} |
|
166 | {% else %} | |
164 | <div> Terminals are unavailable. </div> |
|
167 | <div> Terminals are unavailable. </div> | |
165 | {% endif %} |
|
168 | {% endif %} | |
166 | </div> |
|
169 | </div> | |
167 | </div> |
|
170 | </div> | |
168 | </div> |
|
171 | </div> | |
169 | </div> |
|
172 | </div> | |
170 | </div> |
|
173 | </div> | |
171 | <div class="panel panel-default"> |
|
174 | <div class="panel panel-default"> | |
172 | <div class="panel-heading"> |
|
175 | <div class="panel-heading"> | |
173 | <a data-toggle="collapse" data-target="#collapseTwo" href="#"> |
|
176 | <a data-toggle="collapse" data-target="#collapseTwo" href="#"> | |
174 | Notebooks |
|
177 | Notebooks | |
175 | </a> |
|
178 | </a> | |
176 | </div> |
|
179 | </div> | |
177 | <div id="collapseTwo" class=" collapse in"> |
|
180 | <div id="collapseTwo" class=" collapse in"> | |
178 | <div class="panel-body"> |
|
181 | <div class="panel-body"> | |
179 | <div id="running_list"> |
|
182 | <div id="running_list"> | |
180 | <div id="running_list_header" class="row list_header"> |
|
183 | <div id="running_list_header" class="row list_header"> | |
181 | <div> There are no notebooks running. </div> |
|
184 | <div> There are no notebooks running. </div> | |
182 | </div> |
|
185 | </div> | |
183 | </div> |
|
186 | </div> | |
184 | </div> |
|
187 | </div> | |
185 | </div> |
|
188 | </div> | |
186 | </div> |
|
189 | </div> | |
187 | </div> |
|
190 | </div> | |
188 | </div> |
|
191 | </div> | |
189 | <div id="clusters" class="tab-pane"> |
|
192 | <div id="clusters" class="tab-pane"> | |
190 | <div id="cluster_toolbar" class="row"> |
|
193 | <div id="cluster_toolbar" class="row"> | |
191 | <div class="col-xs-8 no-padding"> |
|
194 | <div class="col-xs-8 no-padding"> | |
192 | <span id="cluster_list_info">IPython parallel computing clusters</span> |
|
195 | <span id="cluster_list_info">IPython parallel computing clusters</span> | |
193 | </div> |
|
196 | </div> | |
194 | <div class="col-xs-4 no-padding tree-buttons"> |
|
197 | <div class="col-xs-4 no-padding tree-buttons"> | |
195 | <span id="cluster_buttons" class="pull-right"> |
|
198 | <span id="cluster_buttons" class="pull-right"> | |
196 | <button id="refresh_cluster_list" title="Refresh cluster list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> |
|
199 | <button id="refresh_cluster_list" title="Refresh cluster list" class="btn btn-default btn-xs"><i class="fa fa-refresh"></i></button> | |
197 | </span> |
|
200 | </span> | |
198 | </div> |
|
201 | </div> | |
199 | </div> |
|
202 | </div> | |
200 | <div id="cluster_list"> |
|
203 | <div id="cluster_list"> | |
201 | <div id="cluster_list_header" class="row list_header"> |
|
204 | <div id="cluster_list_header" class="row list_header"> | |
202 | <div class="profile_col col-xs-4">profile</div> |
|
205 | <div class="profile_col col-xs-4">profile</div> | |
203 | <div class="status_col col-xs-3">status</div> |
|
206 | <div class="status_col col-xs-3">status</div> | |
204 | <div class="engines_col col-xs-3" title="Enter the number of engines to start or empty for default"># of engines</div> |
|
207 | <div class="engines_col col-xs-3" title="Enter the number of engines to start or empty for default"># of engines</div> | |
205 | <div class="action_col col-xs-2">action</div> |
|
208 | <div class="action_col col-xs-2">action</div> | |
206 | </div> |
|
209 | </div> | |
207 | </div> |
|
210 | </div> | |
208 | </div> |
|
211 | </div> | |
209 | </div><!-- class:tab-content --> |
|
212 | </div><!-- class:tab-content --> | |
210 | </div><!-- id:tab_content --> |
|
213 | </div><!-- id:tab_content --> | |
211 | </div><!-- ipython-main-app --> |
|
214 | </div><!-- ipython-main-app --> | |
212 |
|
215 | |||
213 | {% endblock %} |
|
216 | {% endblock %} | |
214 |
|
217 | |||
215 | {% block script %} |
|
218 | {% block script %} | |
216 | {{super()}} |
|
219 | {{super()}} | |
217 |
|
220 | |||
218 | <script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script> |
|
221 | <script src="{{ static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script> | |
219 | {% endblock %} |
|
222 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now