##// END OF EJS Templates
collapse the navbar on narrow windows...
MinRK -
Show More
@@ -1,317 +1,323 b''
1 1 {% extends "page.html" %}
2 2
3 3 {% block stylesheet %}
4 4
5 5 {% if mathjax_url %}
6 6 <script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full&delayStartupUntil=configured" charset="utf-8"></script>
7 7 {% endif %}
8 8 <script type="text/javascript">
9 9 // MathJax disabled, set as null to distingish from *missing* MathJax,
10 10 // where it will be undefined, and should prompt a dialog later.
11 11 window.mathjax_url = "{{mathjax_url}}";
12 12 </script>
13 13
14 14 <link rel="stylesheet" href="{{ static_url("components/bootstrap-tour/build/css/bootstrap-tour.min.css") }}" type="text/css" />
15 15 <link rel="stylesheet" href="{{ static_url("components/codemirror/lib/codemirror.css") }}">
16 16
17 17 {{super()}}
18 18
19 19 <link rel="stylesheet" href="{{ static_url("notebook/css/override.css") }}" type="text/css" />
20 20
21 21 {% endblock %}
22 22
23 23 {% block params %}
24 24
25 25 data-project="{{project}}"
26 26 data-base-url="{{base_url}}"
27 27 data-ws-url="{{ws_url}}"
28 28 data-notebook-name="{{notebook_name}}"
29 29 data-notebook-path="{{notebook_path}}"
30 30 class="notebook_app"
31 31
32 32 {% endblock %}
33 33
34 34
35 35 {% block header %}
36 36
37 37
38 38 <span id="save_widget" class="nav pull-left">
39 39 <span id="notebook_name"></span>
40 40 <span id="checkpoint_status"></span>
41 41 <span id="autosave_status"></span>
42 42 </span>
43 43
44 44 <span id="kernel_selector_widget" class="pull-right dropdown">
45 45 <button class="dropdown-toggle" data-toggle="dropdown" type='button' id="current_kernel_spec">
46 46 <span class='kernel_name'>Python</span>
47 47 <span class="caret"></span>
48 48 </button>
49 49 <ul id="kernel_selector" class="dropdown-menu">
50 50 </ul>
51 51 </span>
52 52
53 53 {% endblock %}
54 54
55 55
56 56 {% block site %}
57 57
58 58 <div id="menubar-container" class="container">
59 59 <div id="menubar">
60 60 <div id="menus" class="navbar navbar-default" role="navigation">
61 61 <div class="container-fluid">
62 <button type="button" class="btn btn-default navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
63 <i class="fa fa-bars"></i>
64 <span class="navbar-text">Menu</span>
65 </button>
66 <div class="navbar-collapse collapse">
62 67 <ul class="nav navbar-nav">
63 68 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a>
64 69 <ul id="file_menu" class="dropdown-menu">
65 70 <li id="new_notebook"
66 71 title="Make a new notebook (Opens a new window)">
67 72 <a href="#">New</a></li>
68 73 <li id="open_notebook"
69 74 title="Opens a new window with the Dashboard view">
70 75 <a href="#">Open...</a></li>
71 76 <!-- <hr/> -->
72 77 <li class="divider"></li>
73 78 <li id="copy_notebook"
74 79 title="Open a copy of this notebook's contents and start a new kernel">
75 80 <a href="#">Make a Copy...</a></li>
76 81 <li id="rename_notebook"><a href="#">Rename...</a></li>
77 82 <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li>
78 83 <!-- <hr/> -->
79 84 <li class="divider"></li>
80 85 <li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a>
81 86 <ul class="dropdown-menu">
82 87 <li><a href="#"></a></li>
83 88 <li><a href="#"></a></li>
84 89 <li><a href="#"></a></li>
85 90 <li><a href="#"></a></li>
86 91 <li><a href="#"></a></li>
87 92 </ul>
88 93 </li>
89 94 <li class="divider"></li>
90 95 <li id="print_preview"><a href="#">Print Preview</a></li>
91 96 <li class="dropdown-submenu"><a href="#">Download as</a>
92 97 <ul class="dropdown-menu">
93 98 <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li>
94 99 <li id="download_py"><a href="#">Python (.py)</a></li>
95 100 <li id="download_html"><a href="#">HTML (.html)</a></li>
96 101 <li id="download_rst"><a href="#">reST (.rst)</a></li>
97 102 <li id="download_pdf"><a href="#">PDF (.pdf)</a></li>
98 103 </ul>
99 104 </li>
100 105 <li class="divider"></li>
101 106 <li id="trust_notebook"
102 107 title="Trust the output of this notebook">
103 108 <a href="#" >Trust Notebook</a></li>
104 109 <li class="divider"></li>
105 110 <li id="kill_and_exit"
106 111 title="Shutdown this notebook's kernel, and close this window">
107 112 <a href="#" >Close and halt</a></li>
108 113 </ul>
109 114 </li>
110 115 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
111 116 <ul id="edit_menu" class="dropdown-menu">
112 117 <li id="cut_cell"><a href="#">Cut Cell</a></li>
113 118 <li id="copy_cell"><a href="#">Copy Cell</a></li>
114 119 <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li>
115 120 <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li>
116 121 <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell &amp; Replace</a></li>
117 122 <li id="delete_cell"><a href="#">Delete Cell</a></li>
118 123 <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
119 124 <li class="divider"></li>
120 125 <li id="split_cell"><a href="#">Split Cell</a></li>
121 126 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
122 127 <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li>
123 128 <li class="divider"></li>
124 129 <li id="move_cell_up"><a href="#">Move Cell Up</a></li>
125 130 <li id="move_cell_down"><a href="#">Move Cell Down</a></li>
126 131 <li class="divider"></li>
127 132 <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li>
128 133 </ul>
129 134 </li>
130 135 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
131 136 <ul id="view_menu" class="dropdown-menu">
132 137 <li id="toggle_header"
133 138 title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)">
134 139 <a href="#">Toggle Header</a></li>
135 140 <li id="toggle_toolbar"
136 141 title="Show/Hide the action icons (below menu bar)">
137 142 <a href="#">Toggle Toolbar</a></li>
138 143 </ul>
139 144 </li>
140 145 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a>
141 146 <ul id="insert_menu" class="dropdown-menu">
142 147 <li id="insert_cell_above"
143 148 title="Insert an empty Code cell above the currently active cell">
144 149 <a href="#">Insert Cell Above</a></li>
145 150 <li id="insert_cell_below"
146 151 title="Insert an empty Code cell below the currently active cell">
147 152 <a href="#">Insert Cell Below</a></li>
148 153 </ul>
149 154 </li>
150 155 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a>
151 156 <ul id="cell_menu" class="dropdown-menu">
152 157 <li id="run_cell" title="Run this cell, and move cursor to the next one">
153 158 <a href="#">Run</a></li>
154 159 <li id="run_cell_select_below" title="Run this cell, select below">
155 160 <a href="#">Run and Select Below</a></li>
156 161 <li id="run_cell_insert_below" title="Run this cell, insert below">
157 162 <a href="#">Run and Insert Below</a></li>
158 163 <li id="run_all_cells" title="Run all cells in the notebook">
159 164 <a href="#">Run All</a></li>
160 165 <li id="run_all_cells_above" title="Run all cells above (but not including) this cell">
161 166 <a href="#">Run All Above</a></li>
162 167 <li id="run_all_cells_below" title="Run this cell and all cells below it">
163 168 <a href="#">Run All Below</a></li>
164 169 <li class="divider"></li>
165 170 <li id="change_cell_type" class="dropdown-submenu"
166 171 title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells">
167 172 <a href="#">Cell Type</a>
168 173 <ul class="dropdown-menu">
169 174 <li id="to_code"
170 175 title="Contents will be sent to the kernel for execution, and output will display in the footer of cell">
171 176 <a href="#">Code</a></li>
172 177 <li id="to_markdown"
173 178 title="Contents will be rendered as HTML and serve as explanatory text">
174 179 <a href="#">Markdown</a></li>
175 180 <li id="to_raw"
176 181 title="Contents will pass through nbconvert unmodified">
177 182 <a href="#">Raw NBConvert</a></li>
178 183 <li id="to_heading1"><a href="#">Heading 1</a></li>
179 184 <li id="to_heading2"><a href="#">Heading 2</a></li>
180 185 <li id="to_heading3"><a href="#">Heading 3</a></li>
181 186 <li id="to_heading4"><a href="#">Heading 4</a></li>
182 187 <li id="to_heading5"><a href="#">Heading 5</a></li>
183 188 <li id="to_heading6"><a href="#">Heading 6</a></li>
184 189 </ul>
185 190 </li>
186 191 <li class="divider"></li>
187 192 <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a>
188 193 <ul class="dropdown-menu">
189 194 <li id="toggle_current_output"
190 195 title="Hide/Show the output of the current cell">
191 196 <a href="#">Toggle</a>
192 197 </li>
193 198 <li id="toggle_current_output_scroll"
194 199 title="Scroll the output of the current cell">
195 200 <a href="#">Toggle Scrolling</a>
196 201 </li>
197 202 <li id="clear_current_output"
198 203 title="Clear the output of the current cell">
199 204 <a href="#">Clear</a>
200 205 </li>
201 206 </ul>
202 207 </li>
203 208 <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a>
204 209 <ul class="dropdown-menu">
205 210 <li id="toggle_all_output"
206 211 title="Hide/Show the output of all cells">
207 212 <a href="#">Toggle</a>
208 213 </li>
209 214 <li id="toggle_all_output_scroll"
210 215 title="Scroll the output of all cells">
211 216 <a href="#">Toggle Scrolling</a>
212 217 </li>
213 218 <li id="clear_all_output"
214 219 title="Clear the output of all cells">
215 220 <a href="#">Clear</a>
216 221 </li>
217 222 </ul>
218 223 </li>
219 224 </ul>
220 225 </li>
221 226 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a>
222 227 <ul id="kernel_menu" class="dropdown-menu">
223 228 <li id="int_kernel"
224 229 title="Send KeyboardInterrupt (CTRL-C) to the Kernel">
225 230 <a href="#">Interrupt</a></li>
226 231 <li id="restart_kernel"
227 232 title="Restart the Kernel">
228 233 <a href="#">Restart</a></li>
229 234 <li class="divider"></li>
230 235 <li id="menu-change-kernel" class="dropdown-submenu">
231 236 <a href="#">Change kernel</a>
232 237 <ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul>
233 238 </li>
234 239 </ul>
235 240 </li>
236 241 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
237 242 <ul id="help_menu" class="dropdown-menu">
238 243 <li id="notebook_tour" title="A quick tour of the notebook user interface"><a href="#">User Interface Tour</a></li>
239 244 <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li>
240 245 <li class="divider"></li>
241 246 {% set
242 247 sections = (
243 248 (
244 249 ("http://ipython.org/documentation.html","IPython Help",True),
245 250 ("http://nbviewer.ipython.org/github/ipython/ipython/tree/2.x/examples/Index.ipynb", "Notebook Help", True),
246 251 ),(
247 252 ("http://docs.python.org","Python",True),
248 253 ("http://help.github.com/articles/github-flavored-markdown","Markdown",True),
249 254 ("http://docs.scipy.org/doc/numpy/reference/","NumPy",True),
250 255 ("http://docs.scipy.org/doc/scipy/reference/","SciPy",True),
251 256 ("http://matplotlib.org/contents.html","Matplotlib",True),
252 257 ("http://docs.sympy.org/latest/index.html","SymPy",True),
253 258 ("http://pandas.pydata.org/pandas-docs/stable/","pandas", True)
254 259 )
255 260 )
256 261 %}
257 262
258 263 {% for helplinks in sections %}
259 264 {% for link in helplinks %}
260 265 <li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}>
261 266 {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}}
262 267 {{link[1]}}
263 268 </a></li>
264 269 {% endfor %}
265 270 {% if not loop.last %}
266 271 <li class="divider"></li>
267 272 {% endif %}
268 273 {% endfor %}
269 274 </li>
270 275 </ul>
271 276 </li>
272 277 </ul>
278 </div>
273 279 <ul class="nav navbar-nav navbar-right">
274 280 <li id="kernel_indicator">
275 281 <i id="kernel_indicator_icon"></i>
276 282 </li>
277 283 <li id="modal_indicator">
278 284 <i id="modal_indicator_icon"></i>
279 285 </li>
280 286 <li id="notification_area"></li>
281 287 </ul>
282 288 </div>
283 289 </div>
284 290 </div>
285 291 <div id="maintoolbar" class="navbar">
286 292 <div class="toolbar-inner navbar-inner navbar-nobg">
287 293 <div id="maintoolbar-container" class="container"></div>
288 294 </div>
289 295 </div>
290 296 </div>
291 297
292 298 <div id="ipython-main-app">
293 299
294 300 <div id="notebook_panel">
295 301 <div id="notebook"></div>
296 302 <div id="pager_splitter"></div>
297 303 <div id="pager">
298 304 <div id='pager_button_area'>
299 305 </div>
300 306 <div id="pager-container" class="container"></div>
301 307 </div>
302 308 </div>
303 309
304 310 </div>
305 311 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
306 312
307 313
308 314 {% endblock %}
309 315
310 316
311 317 {% block script %}
312 318 {{super()}}
313 319
314 320
315 321 <script src="{{ static_url("notebook/js/main.js") }}" charset="utf-8"></script>
316 322
317 323 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now