##// END OF EJS Templates
Merge pull request #5147 from minrk/static-url-version...
Brian E. Granger -
r15381:17059d4d merge
parent child Browse files
Show More
@@ -1,351 +1,351
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/codemirror/lib/codemirror.css") }}">
15 15
16 16 {{super()}}
17 17
18 18 <link rel="stylesheet" href="{{ static_url("notebook/css/override.css") }}" type="text/css" />
19 19
20 20 {% endblock %}
21 21
22 22 {% block params %}
23 23
24 24 data-project="{{project}}"
25 25 data-base-url="{{base_url}}"
26 26 data-notebook-name="{{notebook_name}}"
27 27 data-notebook-path="{{notebook_path}}"
28 28 class="notebook_app"
29 29
30 30 {% endblock %}
31 31
32 32
33 33 {% block header %}
34 34
35 35 <span id="save_widget" class="nav pull-left">
36 36 <span id="notebook_name"></span>
37 37 <span id="checkpoint_status"></span>
38 38 <span id="autosave_status"></span>
39 39 </span>
40 40
41 41 {% endblock %}
42 42
43 43
44 44 {% block site %}
45 45
46 46 <div id="menubar-container" class="container">
47 47 <div id="menubar">
48 48 <div class="navbar">
49 49 <div class="navbar-inner">
50 50 <div class="container">
51 51 <ul id="menus" class="nav">
52 52 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a>
53 53 <ul id="file_menu" class="dropdown-menu">
54 54 <li id="new_notebook"
55 55 title="Make a new notebook (Opens a new window)">
56 56 <a href="#">New</a></li>
57 57 <li id="open_notebook"
58 58 title="Opens a new window with the Dashboard view">
59 59 <a href="#">Open...</a></li>
60 60 <!-- <hr/> -->
61 61 <li class="divider"></li>
62 62 <li id="copy_notebook"
63 63 title="Open a copy of this notebook's contents and start a new kernel">
64 64 <a href="#">Make a Copy...</a></li>
65 65 <li id="rename_notebook"><a href="#">Rename...</a></li>
66 66 <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li>
67 67 <!-- <hr/> -->
68 68 <li class="divider"></li>
69 69 <li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a>
70 70 <ul class="dropdown-menu">
71 71 <li><a href="#"></a></li>
72 72 <li><a href="#"></a></li>
73 73 <li><a href="#"></a></li>
74 74 <li><a href="#"></a></li>
75 75 <li><a href="#"></a></li>
76 76 </ul>
77 77 </li>
78 78 <li class="divider"></li>
79 79 <li id="print_preview"><a href="#">Print Preview</a></li>
80 80 <li class="dropdown-submenu"><a href="#">Download as</a>
81 81 <ul class="dropdown-menu">
82 82 <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li>
83 83 <li id="download_py"><a href="#">Python (.py)</a></li>
84 84 <li id="download_html"><a href="#">HTML (.html)</a></li>
85 85 <li id="download_rst"><a href="#">reST (.rst)</a></li>
86 86 </ul>
87 87 </li>
88 88 <li class="divider"></li>
89 89
90 90 <li id="kill_and_exit"
91 91 title="Shutdown this notebook's kernel, and close this window">
92 92 <a href="#" >Close and halt</a></li>
93 93 </ul>
94 94 </li>
95 95 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
96 96 <ul id="edit_menu" class="dropdown-menu">
97 97 <li id="cut_cell"><a href="#">Cut Cell</a></li>
98 98 <li id="copy_cell"><a href="#">Copy Cell</a></li>
99 99 <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li>
100 100 <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li>
101 101 <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell &amp; Replace</a></li>
102 102 <li id="delete_cell"><a href="#">Delete Cell</a></li>
103 103 <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
104 104 <li class="divider"></li>
105 105 <li id="split_cell"><a href="#">Split Cell</a></li>
106 106 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
107 107 <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li>
108 108 <li class="divider"></li>
109 109 <li id="move_cell_up"><a href="#">Move Cell Up</a></li>
110 110 <li id="move_cell_down"><a href="#">Move Cell Down</a></li>
111 111 <li class="divider"></li>
112 112 <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li>
113 113 </ul>
114 114 </li>
115 115 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
116 116 <ul id="view_menu" class="dropdown-menu">
117 117 <li id="toggle_header"
118 118 title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)">
119 119 <a href="#">Toggle Header</a></li>
120 120 <li id="toggle_toolbar"
121 121 title="Show/Hide the action icons (below menu bar)">
122 122 <a href="#">Toggle Toolbar</a></li>
123 123 </ul>
124 124 </li>
125 125 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a>
126 126 <ul id="insert_menu" class="dropdown-menu">
127 127 <li id="insert_cell_above"
128 128 title="Insert an empty Code cell above the currently active cell">
129 129 <a href="#">Insert Cell Above</a></li>
130 130 <li id="insert_cell_below"
131 131 title="Insert an empty Code cell below the currently active cell">
132 132 <a href="#">Insert Cell Below</a></li>
133 133 </ul>
134 134 </li>
135 135 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a>
136 136 <ul id="cell_menu" class="dropdown-menu">
137 137 <li id="run_cell" title="Run this cell, and move cursor to the next one">
138 138 <a href="#">Run</a></li>
139 139 <li id="run_cell_select_below" title="Run this cell, select below">
140 140 <a href="#">Run and Select Below</a></li>
141 141 <li id="run_cell_insert_below" title="Run this cell, insert below">
142 142 <a href="#">Run and Insert Below</a></li>
143 143 <li id="run_all_cells" title="Run all cells in the notebook">
144 144 <a href="#">Run All</a></li>
145 145 <li id="run_all_cells_above" title="Run all cells above (but not including) this cell">
146 146 <a href="#">Run All Above</a></li>
147 147 <li id="run_all_cells_below" title="Run this cell and all cells below it">
148 148 <a href="#">Run All Below</a></li>
149 149 <li class="divider"></li>
150 150 <li id="change_cell_type" class="dropdown-submenu"
151 151 title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells">
152 152 <a href="#">Cell Type</a>
153 153 <ul class="dropdown-menu">
154 154 <li id="to_code"
155 155 title="Contents will be sent to the kernel for execution, and output will display in the footer of cell">
156 156 <a href="#">Code</a></li>
157 157 <li id="to_markdown"
158 158 title="Contents will be rendered as HTML and serve as explanatory text">
159 159 <a href="#">Markdown</a></li>
160 160 <li id="to_raw"
161 161 title="Contents will pass through nbconvert unmodified">
162 162 <a href="#">Raw NBConvert</a></li>
163 163 <li id="to_heading1"><a href="#">Heading 1</a></li>
164 164 <li id="to_heading2"><a href="#">Heading 2</a></li>
165 165 <li id="to_heading3"><a href="#">Heading 3</a></li>
166 166 <li id="to_heading4"><a href="#">Heading 4</a></li>
167 167 <li id="to_heading5"><a href="#">Heading 5</a></li>
168 168 <li id="to_heading6"><a href="#">Heading 6</a></li>
169 169 </ul>
170 170 </li>
171 171 <li class="divider"></li>
172 172 <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a>
173 173 <ul class="dropdown-menu">
174 174 <li id="toggle_current_output"
175 175 title="Hide/Show the output of the current cell">
176 176 <a href="#">Toggle</a>
177 177 </li>
178 178 <li id="toggle_current_output_scroll"
179 179 title="Scroll the output of the current cell">
180 180 <a href="#">Toggle Scrolling</a>
181 181 </li>
182 182 <li id="clear_current_output"
183 183 title="Clear the output of the current cell">
184 184 <a href="#">Clear</a>
185 185 </li>
186 186 </ul>
187 187 </li>
188 188 <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a>
189 189 <ul class="dropdown-menu">
190 190 <li id="toggle_all_output"
191 191 title="Hide/Show the output of all cells">
192 192 <a href="#">Toggle</a>
193 193 </li>
194 194 <li id="toggle_all_output_scroll"
195 195 title="Scroll the output of all cells">
196 196 <a href="#">Toggle Scrolling</a>
197 197 </li>
198 198 <li id="clear_all_output"
199 199 title="Clear the output of all cells">
200 200 <a href="#">Clear</a>
201 201 </li>
202 202 </ul>
203 203 </li>
204 204 </ul>
205 205 </li>
206 206 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a>
207 207 <ul id="kernel_menu" class="dropdown-menu">
208 208 <li id="int_kernel"
209 209 title="Send KeyboardInterrupt (CTRL-C) to the Kernel">
210 210 <a href="#">Interrupt</a></li>
211 211 <li id="restart_kernel"
212 212 title="Restart the Kernel">
213 213 <a href="#">Restart</a></li>
214 214 </ul>
215 215 </li>
216 216 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
217 217 <ul id="help_menu" class="dropdown-menu">
218 218 <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li>
219 219 <li class="divider"></li>
220 220 {% set
221 221 sections = (
222 222 (
223 223 ("http://ipython.org/documentation.html","IPython Help",True),
224 224 ("http://nbviewer.ipython.org/github/ipython/ipython/tree/master/examples/notebooks/", "Notebook Examples", True),
225 225 ("http://ipython.org/ipython-doc/stable/interactive/notebook.html","Notebook Help",True),
226 226 ("http://ipython.org/ipython-doc/dev/interactive/cm_keyboard.html","Editor Shortcuts",True),
227 227 ),(
228 228 ("http://docs.python.org","Python",True),
229 229 ("http://docs.scipy.org/doc/numpy/reference/","NumPy",True),
230 230 ("http://docs.scipy.org/doc/scipy/reference/","SciPy",True),
231 231 ("http://matplotlib.org/contents.html","Matplotlib",True),
232 232 ("http://docs.sympy.org/dev/index.html","SymPy",True),
233 233 ("http://pandas.pydata.org/pandas-docs/stable/","pandas", True)
234 234 )
235 235 )
236 236 %}
237 237
238 238 {% for helplinks in sections %}
239 239 {% for link in helplinks %}
240 240 <li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}>
241 241 {{'<i class="icon-external-link menu-icon pull-right"></i>' if link[2]}}
242 242 {{link[1]}}
243 243 </a></li>
244 244 {% endfor %}
245 245 {% if not loop.last %}
246 246 <li class="divider"></li>
247 247 {% endif %}
248 248 {% endfor %}
249 249 </li>
250 250 </ul>
251 251 </li>
252 252 </ul>
253 253 <div id="kernel_indicator" class="indicator_area pull-right">
254 254 <i id="kernel_indicator_icon"></i>
255 255 </div>
256 256 <div id="modal_indicator" class="indicator_area pull-right">
257 257 <i id="modal_indicator_icon"></i>
258 258 </div>
259 259 <div id="notification_area"></div>
260 260 </div>
261 261 </div>
262 262 </div>
263 263 </div>
264 264 <div id="maintoolbar" class="navbar">
265 265 <div class="toolbar-inner navbar-inner navbar-nobg">
266 266 <div id="maintoolbar-container" class="container"></div>
267 267 </div>
268 268 </div>
269 269 </div>
270 270
271 271 <div id="ipython-main-app">
272 272
273 273 <div id="notebook_panel">
274 274 <div id="notebook"></div>
275 275 <div id="pager_splitter"></div>
276 276 <div id="pager">
277 277 <div id='pager_button_area'>
278 278 </div>
279 279 <div id="pager-container" class="container"></div>
280 280 </div>
281 281 </div>
282 282
283 283 </div>
284 284 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
285 285
286 286
287 287 {% endblock %}
288 288
289 289
290 290 {% block script %}
291 291
292 292 {{super()}}
293 293
294 294 <script src="{{ static_url("components/codemirror/lib/codemirror.js") }}" charset="utf-8"></script>
295 295 <script type="text/javascript">
296 CodeMirror.modeURL = "{{ static_url("components/codemirror/mode/%N/%N.js") }}";
296 CodeMirror.modeURL = "{{ static_url("components/codemirror/mode/%N/%N.js", include_version=False) }}";
297 297 </script>
298 298 <script src="{{ static_url("components/codemirror/addon/mode/loadmode.js") }}" charset="utf-8"></script>
299 299 <script src="{{ static_url("components/codemirror/addon/mode/multiplex.js") }}" charset="utf-8"></script>
300 300 <script src="{{ static_url("components/codemirror/addon/mode/overlay.js") }}" charset="utf-8"></script>
301 301 <script src="{{ static_url("components/codemirror/addon/edit/matchbrackets.js") }}" charset="utf-8"></script>
302 302 <script src="{{ static_url("components/codemirror/addon/comment/comment.js") }}" charset="utf-8"></script>
303 303 <script src="{{ static_url("components/codemirror/mode/htmlmixed/htmlmixed.js") }}" charset="utf-8"></script>
304 304 <script src="{{ static_url("components/codemirror/mode/xml/xml.js") }}" charset="utf-8"></script>
305 305 <script src="{{ static_url("components/codemirror/mode/javascript/javascript.js") }}" charset="utf-8"></script>
306 306 <script src="{{ static_url("components/codemirror/mode/css/css.js") }}" charset="utf-8"></script>
307 307 <script src="{{ static_url("components/codemirror/mode/rst/rst.js") }}" charset="utf-8"></script>
308 308 <script src="{{ static_url("components/codemirror/mode/markdown/markdown.js") }}" charset="utf-8"></script>
309 309 <script src="{{ static_url("components/codemirror/mode/gfm/gfm.js") }}" charset="utf-8"></script>
310 310 <script src="{{ static_url("components/codemirror/mode/python/python.js") }}" charset="utf-8"></script>
311 311 <script src="{{ static_url("notebook/js/codemirror-ipython.js") }}" charset="utf-8"></script>
312 312
313 313 <script src="{{ static_url("components/highlight.js/build/highlight.pack.js") }}" charset="utf-8"></script>
314 314
315 315 <script src="{{ static_url("dateformat/date.format.js") }}" charset="utf-8"></script>
316 316
317 317 <script src="{{ static_url("base/js/events.js") }}" type="text/javascript" charset="utf-8"></script>
318 318 <script src="{{ static_url("base/js/utils.js") }}" type="text/javascript" charset="utf-8"></script>
319 319 <script src="{{ static_url("base/js/dialog.js") }}" type="text/javascript" charset="utf-8"></script>
320 320 <script src="{{ static_url("services/kernels/js/kernel.js") }}" type="text/javascript" charset="utf-8"></script>
321 321 <script src="{{ static_url("services/kernels/js/comm.js") }}" type="text/javascript" charset="utf-8"></script>
322 322 <script src="{{ static_url("services/sessions/js/session.js") }}" type="text/javascript" charset="utf-8"></script>
323 323 <script src="{{ static_url("notebook/js/layoutmanager.js") }}" type="text/javascript" charset="utf-8"></script>
324 324 <script src="{{ static_url("notebook/js/mathjaxutils.js") }}" type="text/javascript" charset="utf-8"></script>
325 325 <script src="{{ static_url("notebook/js/outputarea.js") }}" type="text/javascript" charset="utf-8"></script>
326 326 <script src="{{ static_url("notebook/js/cell.js") }}" type="text/javascript" charset="utf-8"></script>
327 327 <script src="{{ static_url("notebook/js/celltoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
328 328 <script src="{{ static_url("notebook/js/codecell.js") }}" type="text/javascript" charset="utf-8"></script>
329 329 <script src="{{ static_url("notebook/js/completer.js") }}" type="text/javascript" charset="utf-8"></script>
330 330 <script src="{{ static_url("notebook/js/textcell.js") }}" type="text/javascript" charset="utf-8"></script>
331 331 <script src="{{ static_url("notebook/js/savewidget.js") }}" type="text/javascript" charset="utf-8"></script>
332 332 <script src="{{ static_url("notebook/js/quickhelp.js") }}" type="text/javascript" charset="utf-8"></script>
333 333 <script src="{{ static_url("notebook/js/pager.js") }}" type="text/javascript" charset="utf-8"></script>
334 334 <script src="{{ static_url("notebook/js/menubar.js") }}" type="text/javascript" charset="utf-8"></script>
335 335 <script src="{{ static_url("notebook/js/toolbar.js") }}" type="text/javascript" charset="utf-8"></script>
336 336 <script src="{{ static_url("notebook/js/maintoolbar.js") }}" type="text/javascript" charset="utf-8"></script>
337 337 <script src="{{ static_url("notebook/js/notebook.js") }}" type="text/javascript" charset="utf-8"></script>
338 338 <script src="{{ static_url("notebook/js/keyboardmanager.js") }}" type="text/javascript" charset="utf-8"></script>
339 339 <script src="{{ static_url("notebook/js/notificationwidget.js") }}" type="text/javascript" charset="utf-8"></script>
340 340 <script src="{{ static_url("notebook/js/notificationarea.js") }}" type="text/javascript" charset="utf-8"></script>
341 341 <script src="{{ static_url("notebook/js/tooltip.js") }}" type="text/javascript" charset="utf-8"></script>
342 342 <script src="{{ static_url("notebook/js/config.js") }}" type="text/javascript" charset="utf-8"></script>
343 343 <script src="{{ static_url("notebook/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
344 344
345 345 <script src="{{ static_url("notebook/js/contexthint.js") }}" charset="utf-8"></script>
346 346
347 347 <script src="{{ static_url("notebook/js/celltoolbarpresets/default.js") }}" type="text/javascript" charset="utf-8"></script>
348 348 <script src="{{ static_url("notebook/js/celltoolbarpresets/rawcell.js") }}" type="text/javascript" charset="utf-8"></script>
349 349 <script src="{{ static_url("notebook/js/celltoolbarpresets/slideshow.js") }}" type="text/javascript" charset="utf-8"></script>
350 350
351 351 {% endblock %}
@@ -1,96 +1,96
1 1
2 2
3 3 <!DOCTYPE HTML>
4 4 <html>
5 5
6 6 <head>
7 7 <meta charset="utf-8">
8 8
9 9 <title>{% block title %}IPython Notebook{% endblock %}</title>
10 10 <link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">
11 11 <meta http-equiv="X-UA-Compatible" content="chrome=1">
12 12 <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
13 13 <meta name="viewport" content="width=device-width, initial-scale=1.0">
14 14
15 15 {% block stylesheet %}
16 16 <link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/>
17 17 {% endblock %}
18 18 <link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" />
19 19 <script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
20 20 <script>
21 21 require.config({
22 baseUrl: '{{static_url("")}}',
22 baseUrl: '{{static_url("", include_version=False)}}',
23 23 paths: {
24 24 nbextensions : '{{ base_url }}nbextensions',
25 underscore : '{{static_url("components/underscore/underscore-min")}}',
26 backbone : '{{static_url("components/backbone/backbone-min")}}',
25 underscore : '{{static_url("components/underscore/underscore-min.js")}}',
26 backbone : '{{static_url("components/backbone/backbone-min.js")}}',
27 27 },
28 28 shim: {
29 29 underscore: {
30 30 exports: '_'
31 31 },
32 32 backbone: {
33 33 deps: ["underscore", "jquery"],
34 34 exports: "Backbone"
35 35 }
36 36 }
37 37 });
38 38 </script>
39 39
40 40 {% block meta %}
41 41 {% endblock %}
42 42
43 43 </head>
44 44
45 45 <body {% block params %}{% endblock %}>
46 46
47 47 <noscript>
48 48 <div id='noscript'>
49 49 IPython Notebook requires JavaScript.<br>
50 50 Please enable it to proceed.
51 51 </div>
52 52 </noscript>
53 53
54 54 <div id="header" class="navbar navbar-static-top">
55 55 <div class="navbar-inner navbar-nobg">
56 56 <div class="container">
57 57 <div id="ipython_notebook" class="nav brand pull-left"><a href="{{base_url}}tree/{{notebook_path}}" alt='dashboard'><img src='{{static_url("base/images/ipynblogo.png") }}' alt='IPython Notebook'/></a></div>
58 58
59 59 {% block login_widget %}
60 60
61 61 <span id="login_widget">
62 62 {% if logged_in %}
63 63 <button id="logout">Logout</button>
64 64 {% elif login_available and not logged_in %}
65 65 <button id="login">Login</button>
66 66 {% endif %}
67 67 </span>
68 68
69 69 {% endblock %}
70 70
71 71 {% block header %}
72 72 {% endblock %}
73 73 </div>
74 74 </div>
75 75 </div>
76 76
77 77 <div id="site">
78 78 {% block site %}
79 79 {% endblock %}
80 80 </div>
81 81
82 82 <script src="{{static_url("components/jquery/jquery.min.js") }}" type="text/javascript" charset="utf-8"></script>
83 83 <script src="{{static_url("components/jquery-ui/ui/minified/jquery-ui.min.js") }}" type="text/javascript" charset="utf-8"></script>
84 84 <script src="{{static_url("components/bootstrap/bootstrap/js/bootstrap.min.js") }}" type="text/javascript" charset="utf-8"></script>
85 85 <script src="{{static_url("base/js/namespace.js") }}" type="text/javascript" charset="utf-8"></script>
86 86 <script src="{{static_url("base/js/page.js") }}" type="text/javascript" charset="utf-8"></script>
87 87 <script src="{{static_url("auth/js/loginwidget.js") }}" type="text/javascript" charset="utf-8"></script>
88 88
89 89 {% block script %}
90 90 {% endblock %}
91 91
92 92 <script src="{{static_url("custom/custom.js") }}" type="text/javascript" charset="utf-8"></script>
93 93
94 94 </body>
95 95
96 96 </html>
General Comments 0
You need to be logged in to leave comments. Login now