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