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