##// END OF EJS Templates
make help menu a templates...
Matthias BUSSONNIER -
Show More
@@ -18,3 +18,8 b''
18 #menubar li.dropdown {
18 #menubar li.dropdown {
19 line-height: 12px;
19 line-height: 12px;
20 }
20 }
21
22 i.menu-icon {
23 // add padding to account for float-right
24 padding-top: 4px;
25 }
@@ -1,7 +1,3 b''
1 .clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}
2 .clearfix:after{clear:both}
3 .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
4 .input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
5 article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}
1 article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}
6 audio,canvas,video{display:inline-block;*display:inline;*zoom:1}
2 audio,canvas,video{display:inline-block;*display:inline;*zoom:1}
7 audio:not([controls]){display:none}
3 audio:not([controls]){display:none}
@@ -856,6 +852,10 b' a.label:hover,a.label:focus,a.badge:hover,a.badge:focus{color:#fff;text-decorati'
856 .show{display:block}
852 .show{display:block}
857 .invisible{visibility:hidden}
853 .invisible{visibility:hidden}
858 .affix{position:fixed}
854 .affix{position:fixed}
855 .clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}
856 .clearfix:after{clear:both}
857 .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
858 .input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
859 @-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden}
859 @-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden}
860 .visible-phone{display:none !important}
860 .visible-phone{display:none !important}
861 .visible-tablet{display:none !important}
861 .visible-tablet{display:none !important}
@@ -1426,6 +1426,7 b' p{margin-bottom:0}'
1426 #menubar .navbar{margin-bottom:8px}
1426 #menubar .navbar{margin-bottom:8px}
1427 .nav-wrapper{border-bottom:1px solid #d4d4d4}
1427 .nav-wrapper{border-bottom:1px solid #d4d4d4}
1428 #menubar li.dropdown{line-height:12px}
1428 #menubar li.dropdown{line-height:12px}
1429 i.menu-icon{padding-top:4px}
1429 #notification_area{z-index:10}
1430 #notification_area{z-index:10}
1430 .notification_widget{color:#777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240,240,240,0.5)}
1431 .notification_widget{color:#777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240,240,240,0.5)}
1431 div#pager_splitter{height:8px}
1432 div#pager_splitter{height:8px}
@@ -216,17 +216,34 b' class="notebook_app"'
216 </li>
216 </li>
217 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
217 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
218 <ul id="help_menu" class="dropdown-menu">
218 <ul id="help_menu" class="dropdown-menu">
219 <li><a href="http://ipython.org/documentation.html" target="_blank">IPython Help</a></li>
220 <li><a href="http://ipython.org/ipython-doc/stable/interactive/notebook.html" target="_blank">Notebook Help</a></li>
221 <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li>
219 <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li>
222 <li><a href="http://ipython.org/ipython-doc/dev/interactive/cm_keyboard.html" target="_blank">Editor Shortcuts</a></li>
223 <li class="divider"></li>
220 <li class="divider"></li>
224 <li><a href="http://docs.python.org" target="_blank">Python</a></li>
221 {% set
225 <li><a href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a></li>
222 sections = (
226 <li><a href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a></li>
223 (
227 <li><a href="http://matplotlib.org/" target="_blank">Matplotlib</a></li>
224 ("http://ipython.org/documentation.html","IPython Help",True),
228 <li><a href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a></li>
225 ("http://ipython.org/ipython-doc/stable/interactive/notebook.html","Notebook Help",True),
229 <li><a href="http://pandas.pydata.org/pandas-docs/stable/" target="_blank">pandas</a></li>
226 ("http://ipython.org/ipython-doc/dev/interactive/cm_keyboard.html","Editor Shortcuts",True),
227 ),(
228 ("http://docs.python.org","Python",True),
229 ("http://docs.scipy.org/doc/numpy/reference/","NumPy",True),
230 ("http://docs.scipy.org/doc/scipy/reference/","SciPy",True),
231 ("http://matplotlib.org/","Matplotlib",True),
232 ("http://docs.sympy.org/dev/index.html","SymPy",True),
233 ("http://pandas.pydata.org/pandas-docs/stable/","pandas", True)
234 )
235 )
236 %}
237
238 {% for helplinks in sections %}
239 {% for link in helplinks %}
240 <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 {% endfor %}
242 {% if not loop.last %}
243 <li class="divider"></li>
244 {% endif %}
245 {% endfor %}
246 </li>
230 </ul>
247 </ul>
231 </li>
248 </li>
232 </ul>
249 </ul>
General Comments 0
You need to be logged in to leave comments. Login now