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