Show More
@@ -1,96 +1,96 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 bodyclasses %}edit_app {{super()}}{% endblock %} | |
12 |
|
12 | |||
13 | class="edit_app" |
|
13 | {% block params %} | |
14 | data-base-url="{{base_url}}" |
|
14 | data-base-url="{{base_url}}" | |
15 | data-file-path="{{file_path}}" |
|
15 | data-file-path="{{file_path}}" | |
16 |
|
16 | {{super()}} | ||
17 | {% endblock %} |
|
17 | {% endblock %} | |
18 |
|
18 | |||
19 | {% block headercontainer %} |
|
19 | {% block headercontainer %} | |
20 |
|
20 | |||
21 | <span id="save_widget" class="pull-left save_widget"> |
|
21 | <span id="save_widget" class="pull-left save_widget"> | |
22 | <span class="filename"></span> |
|
22 | <span class="filename"></span> | |
23 | <span class="last_modified"></span> |
|
23 | <span class="last_modified"></span> | |
24 | </span> |
|
24 | </span> | |
25 |
|
25 | |||
26 | {% endblock %} |
|
26 | {% endblock %} | |
27 |
|
27 | |||
28 | {% block header %} |
|
28 | {% block header %} | |
29 |
|
29 | |||
30 | <div id="menubar-container" class="container"> |
|
30 | <div id="menubar-container" class="container"> | |
31 | <div id="menubar"> |
|
31 | <div id="menubar"> | |
32 | <div id="menus" class="navbar navbar-default" role="navigation"> |
|
32 | <div id="menus" class="navbar navbar-default" role="navigation"> | |
33 | <div class="container-fluid"> |
|
33 | <div class="container-fluid"> | |
34 | <button type="button" class="btn btn-default navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
|
34 | <button type="button" class="btn btn-default navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
35 | <i class="fa fa-bars"></i> |
|
35 | <i class="fa fa-bars"></i> | |
36 | <span class="navbar-text">Menu</span> |
|
36 | <span class="navbar-text">Menu</span> | |
37 | </button> |
|
37 | </button> | |
38 | <ul class="nav navbar-nav navbar-right"> |
|
38 | <ul class="nav navbar-nav navbar-right"> | |
39 | <li id="notification_area"></li> |
|
39 | <li id="notification_area"></li> | |
40 | </ul> |
|
40 | </ul> | |
41 | <div class="navbar-collapse collapse"> |
|
41 | <div class="navbar-collapse collapse"> | |
42 | <ul class="nav navbar-nav"> |
|
42 | <ul class="nav navbar-nav"> | |
43 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a> |
|
43 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a> | |
44 | <ul id="file-menu" class="dropdown-menu"> |
|
44 | <ul id="file-menu" class="dropdown-menu"> | |
45 | <li id="new-file"><a href="#">New</a></li> |
|
45 | <li id="new-file"><a href="#">New</a></li> | |
46 | <li id="save-file"><a href="#">Save</a></li> |
|
46 | <li id="save-file"><a href="#">Save</a></li> | |
47 | <li id="rename-file"><a href="#">Rename</a></li> |
|
47 | <li id="rename-file"><a href="#">Rename</a></li> | |
48 | </ul> |
|
48 | </ul> | |
49 | </li> |
|
49 | </li> | |
50 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a> |
|
50 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a> | |
51 | <ul id="edit-menu" class="dropdown-menu"> |
|
51 | <ul id="edit-menu" class="dropdown-menu"> | |
52 | <li id="menu-find"><a href="#">Find</a></li> |
|
52 | <li id="menu-find"><a href="#">Find</a></li> | |
53 | <li id="menu-replace"><a href="#">Find & Replace</a></li> |
|
53 | <li id="menu-replace"><a href="#">Find & Replace</a></li> | |
54 | <li class="divider"></li> |
|
54 | <li class="divider"></li> | |
55 | <li class="dropdown-header">Key Map</li> |
|
55 | <li class="dropdown-header">Key Map</li> | |
56 | <li id="menu-keymap-default"><a href="#">Default<i class="fa"></i></a></li> |
|
56 | <li id="menu-keymap-default"><a href="#">Default<i class="fa"></i></a></li> | |
57 | <li id="menu-keymap-sublime"><a href="#">Sublime Text<i class="fa"></i></a></li> |
|
57 | <li id="menu-keymap-sublime"><a href="#">Sublime Text<i class="fa"></i></a></li> | |
58 | <li id="menu-keymap-vim"><a href="#">Vim<i class="fa"></i></a></li> |
|
58 | <li id="menu-keymap-vim"><a href="#">Vim<i class="fa"></i></a></li> | |
59 | <li id="menu-keymap-emacs"><a href="#">emacs<i class="fa"></i></a></li> |
|
59 | <li id="menu-keymap-emacs"><a href="#">emacs<i class="fa"></i></a></li> | |
60 | </ul> |
|
60 | </ul> | |
61 | </li> |
|
61 | </li> | |
62 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a> |
|
62 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a> | |
63 | <ul id="view-menu" class="dropdown-menu"> |
|
63 | <ul id="view-menu" class="dropdown-menu"> | |
64 | <li id="menu-line-numbers"><a href="#">Toggle Line Numbers</a></li> |
|
64 | <li id="menu-line-numbers"><a href="#">Toggle Line Numbers</a></li> | |
65 | </ul> |
|
65 | </ul> | |
66 | </li> |
|
66 | </li> | |
67 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Language</a> |
|
67 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Language</a> | |
68 | <ul id="mode-menu" class="dropdown-menu"> |
|
68 | <ul id="mode-menu" class="dropdown-menu"> | |
69 | </ul> |
|
69 | </ul> | |
70 | </li> |
|
70 | </li> | |
71 | </ul> |
|
71 | </ul> | |
72 | <p id="current-mode" class="navbar-text navbar-right">current mode</p> |
|
72 | <p id="current-mode" class="navbar-text navbar-right">current mode</p> | |
73 | </div> |
|
73 | </div> | |
74 | </div> |
|
74 | </div> | |
75 | </div> |
|
75 | </div> | |
76 | </div> |
|
76 | </div> | |
77 | </div> |
|
77 | </div> | |
78 |
|
78 | |||
79 | <div class="lower-header-bar"></div> |
|
79 | <div class="lower-header-bar"></div> | |
80 |
|
80 | |||
81 | {% endblock %} |
|
81 | {% endblock %} | |
82 |
|
82 | |||
83 | {% block site %} |
|
83 | {% block site %} | |
84 |
|
84 | |||
85 | <div id="texteditor-backdrop"> |
|
85 | <div id="texteditor-backdrop"> | |
86 | <div id="texteditor-container" class="container"></div> |
|
86 | <div id="texteditor-container" class="container"></div> | |
87 | </div> |
|
87 | </div> | |
88 |
|
88 | |||
89 | {% endblock %} |
|
89 | {% endblock %} | |
90 |
|
90 | |||
91 | {% block script %} |
|
91 | {% block script %} | |
92 |
|
92 | |||
93 | {{super()}} |
|
93 | {{super()}} | |
94 |
|
94 | |||
95 | <script src="{{ static_url("edit/js/main.js") }}" type="text/javascript" charset="utf-8"></script> |
|
95 | <script src="{{ static_url("edit/js/main.js") }}" type="text/javascript" charset="utf-8"></script> | |
96 | {% endblock %} |
|
96 | {% endblock %} |
@@ -1,318 +1,319 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 | <link rel="stylesheet" href="" id='kernel-css' type="text/css" /> |
|
20 | <link rel="stylesheet" href="" id='kernel-css' type="text/css" /> | |
21 |
|
21 | |||
22 | {% endblock %} |
|
22 | {% endblock %} | |
23 |
|
23 | |||
|
24 | {% block bodyclasses %}notebook_app {{super()}}{% endblock %} | |||
|
25 | ||||
24 | {% block params %} |
|
26 | {% block params %} | |
25 |
|
27 | |||
26 | data-project="{{project}}" |
|
28 | data-project="{{project}}" | |
27 | data-base-url="{{base_url}}" |
|
29 | data-base-url="{{base_url}}" | |
28 | data-ws-url="{{ws_url}}" |
|
30 | data-ws-url="{{ws_url}}" | |
29 | data-notebook-name="{{notebook_name}}" |
|
31 | data-notebook-name="{{notebook_name}}" | |
30 | data-notebook-path="{{notebook_path}}" |
|
32 | data-notebook-path="{{notebook_path}}" | |
31 | class="notebook_app" |
|
|||
32 |
|
33 | |||
33 | {% endblock %} |
|
34 | {% endblock %} | |
34 |
|
35 | |||
35 |
|
36 | |||
36 | {% block headercontainer %} |
|
37 | {% block headercontainer %} | |
37 |
|
38 | |||
38 |
|
39 | |||
39 | <span id="save_widget" class="pull-left save_widget"> |
|
40 | <span id="save_widget" class="pull-left save_widget"> | |
40 | <span class="filename"></span> |
|
41 | <span class="filename"></span> | |
41 | <span class="checkpoint_status"></span> |
|
42 | <span class="checkpoint_status"></span> | |
42 | <span class="autosave_status"></span> |
|
43 | <span class="autosave_status"></span> | |
43 | </span> |
|
44 | </span> | |
44 |
|
45 | |||
45 | <span id="kernel_logo_widget"> |
|
46 | <span id="kernel_logo_widget"> | |
46 | <img class="current_kernel_logo" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/> |
|
47 | <img class="current_kernel_logo" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/> | |
47 | </span> |
|
48 | </span> | |
48 |
|
49 | |||
49 | {% endblock headercontainer %} |
|
50 | {% endblock headercontainer %} | |
50 |
|
51 | |||
51 | {% block header %} |
|
52 | {% block header %} | |
52 | <div id="menubar-container" class="container"> |
|
53 | <div id="menubar-container" class="container"> | |
53 | <div id="menubar"> |
|
54 | <div id="menubar"> | |
54 | <div id="menus" class="navbar navbar-default" role="navigation"> |
|
55 | <div id="menus" class="navbar navbar-default" role="navigation"> | |
55 | <div class="container-fluid"> |
|
56 | <div class="container-fluid"> | |
56 | <button type="button" class="btn btn-default navbar-btn navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
|
57 | <button type="button" class="btn btn-default navbar-btn navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
57 | <i class="fa fa-bars"></i> |
|
58 | <i class="fa fa-bars"></i> | |
58 | <span class="navbar-text">Menu</span> |
|
59 | <span class="navbar-text">Menu</span> | |
59 | </button> |
|
60 | </button> | |
60 | <p id="kernel_indicator" class="navbar-text"> |
|
61 | <p id="kernel_indicator" class="navbar-text"> | |
61 | <span class="kernel_indicator_name">Kernel</span> |
|
62 | <span class="kernel_indicator_name">Kernel</span> | |
62 | <i id="kernel_indicator_icon"></i> |
|
63 | <i id="kernel_indicator_icon"></i> | |
63 | </p> |
|
64 | </p> | |
64 | <i id="modal_indicator" class="navbar-text"></i> |
|
65 | <i id="modal_indicator" class="navbar-text"></i> | |
65 | <span id="notification_area"></span> |
|
66 | <span id="notification_area"></span> | |
66 | <div class="navbar-collapse collapse"> |
|
67 | <div class="navbar-collapse collapse"> | |
67 | <ul class="nav navbar-nav"> |
|
68 | <ul class="nav navbar-nav"> | |
68 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a> |
|
69 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a> | |
69 | <ul id="file_menu" class="dropdown-menu"> |
|
70 | <ul id="file_menu" class="dropdown-menu"> | |
70 | <li id="new_notebook" |
|
71 | <li id="new_notebook" | |
71 | title="Make a new notebook (Opens a new window)"> |
|
72 | title="Make a new notebook (Opens a new window)"> | |
72 | <a href="#">New</a></li> |
|
73 | <a href="#">New</a></li> | |
73 | <li id="open_notebook" |
|
74 | <li id="open_notebook" | |
74 | title="Opens a new window with the Dashboard view"> |
|
75 | title="Opens a new window with the Dashboard view"> | |
75 | <a href="#">Open...</a></li> |
|
76 | <a href="#">Open...</a></li> | |
76 | <!-- <hr/> --> |
|
77 | <!-- <hr/> --> | |
77 | <li class="divider"></li> |
|
78 | <li class="divider"></li> | |
78 | <li id="copy_notebook" |
|
79 | <li id="copy_notebook" | |
79 | title="Open a copy of this notebook's contents and start a new kernel"> |
|
80 | title="Open a copy of this notebook's contents and start a new kernel"> | |
80 | <a href="#">Make a Copy...</a></li> |
|
81 | <a href="#">Make a Copy...</a></li> | |
81 | <li id="rename_notebook"><a href="#">Rename...</a></li> |
|
82 | <li id="rename_notebook"><a href="#">Rename...</a></li> | |
82 | <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li> |
|
83 | <li id="save_checkpoint"><a href="#">Save and Checkpoint</a></li> | |
83 | <!-- <hr/> --> |
|
84 | <!-- <hr/> --> | |
84 | <li class="divider"></li> |
|
85 | <li class="divider"></li> | |
85 | <li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a> |
|
86 | <li id="restore_checkpoint" class="dropdown-submenu"><a href="#">Revert to Checkpoint</a> | |
86 | <ul class="dropdown-menu"> |
|
87 | <ul class="dropdown-menu"> | |
87 | <li><a href="#"></a></li> |
|
88 | <li><a href="#"></a></li> | |
88 | <li><a href="#"></a></li> |
|
89 | <li><a href="#"></a></li> | |
89 | <li><a href="#"></a></li> |
|
90 | <li><a href="#"></a></li> | |
90 | <li><a href="#"></a></li> |
|
91 | <li><a href="#"></a></li> | |
91 | <li><a href="#"></a></li> |
|
92 | <li><a href="#"></a></li> | |
92 | </ul> |
|
93 | </ul> | |
93 | </li> |
|
94 | </li> | |
94 | <li class="divider"></li> |
|
95 | <li class="divider"></li> | |
95 | <li id="print_preview"><a href="#">Print Preview</a></li> |
|
96 | <li id="print_preview"><a href="#">Print Preview</a></li> | |
96 | <li class="dropdown-submenu"><a href="#">Download as</a> |
|
97 | <li class="dropdown-submenu"><a href="#">Download as</a> | |
97 | <ul class="dropdown-menu"> |
|
98 | <ul class="dropdown-menu"> | |
98 | <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li> |
|
99 | <li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li> | |
99 | <li id="download_script"><a href="#">Script</a></li> |
|
100 | <li id="download_script"><a href="#">Script</a></li> | |
100 | <li id="download_html"><a href="#">HTML (.html)</a></li> |
|
101 | <li id="download_html"><a href="#">HTML (.html)</a></li> | |
101 | <li id="download_rst"><a href="#">reST (.rst)</a></li> |
|
102 | <li id="download_rst"><a href="#">reST (.rst)</a></li> | |
102 | <li id="download_pdf"><a href="#">PDF (.pdf)</a></li> |
|
103 | <li id="download_pdf"><a href="#">PDF (.pdf)</a></li> | |
103 | </ul> |
|
104 | </ul> | |
104 | </li> |
|
105 | </li> | |
105 | <li class="divider"></li> |
|
106 | <li class="divider"></li> | |
106 | <li id="trust_notebook" |
|
107 | <li id="trust_notebook" | |
107 | title="Trust the output of this notebook"> |
|
108 | title="Trust the output of this notebook"> | |
108 | <a href="#" >Trust Notebook</a></li> |
|
109 | <a href="#" >Trust Notebook</a></li> | |
109 | <li class="divider"></li> |
|
110 | <li class="divider"></li> | |
110 | <li id="kill_and_exit" |
|
111 | <li id="kill_and_exit" | |
111 | title="Shutdown this notebook's kernel, and close this window"> |
|
112 | title="Shutdown this notebook's kernel, and close this window"> | |
112 | <a href="#" >Close and halt</a></li> |
|
113 | <a href="#" >Close and halt</a></li> | |
113 | </ul> |
|
114 | </ul> | |
114 | </li> |
|
115 | </li> | |
115 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a> |
|
116 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a> | |
116 | <ul id="edit_menu" class="dropdown-menu"> |
|
117 | <ul id="edit_menu" class="dropdown-menu"> | |
117 | <li id="cut_cell"><a href="#">Cut Cell</a></li> |
|
118 | <li id="cut_cell"><a href="#">Cut Cell</a></li> | |
118 | <li id="copy_cell"><a href="#">Copy Cell</a></li> |
|
119 | <li id="copy_cell"><a href="#">Copy Cell</a></li> | |
119 | <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li> |
|
120 | <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li> | |
120 | <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li> |
|
121 | <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li> | |
121 | <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell & Replace</a></li> |
|
122 | <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell & Replace</a></li> | |
122 | <li id="delete_cell"><a href="#">Delete Cell</a></li> |
|
123 | <li id="delete_cell"><a href="#">Delete Cell</a></li> | |
123 | <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li> |
|
124 | <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li> | |
124 | <li class="divider"></li> |
|
125 | <li class="divider"></li> | |
125 | <li id="split_cell"><a href="#">Split Cell</a></li> |
|
126 | <li id="split_cell"><a href="#">Split Cell</a></li> | |
126 | <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li> |
|
127 | <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li> | |
127 | <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li> |
|
128 | <li id="merge_cell_below"><a href="#">Merge Cell Below</a></li> | |
128 | <li class="divider"></li> |
|
129 | <li class="divider"></li> | |
129 | <li id="move_cell_up"><a href="#">Move Cell Up</a></li> |
|
130 | <li id="move_cell_up"><a href="#">Move Cell Up</a></li> | |
130 | <li id="move_cell_down"><a href="#">Move Cell Down</a></li> |
|
131 | <li id="move_cell_down"><a href="#">Move Cell Down</a></li> | |
131 | <li class="divider"></li> |
|
132 | <li class="divider"></li> | |
132 | <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li> |
|
133 | <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li> | |
133 | </ul> |
|
134 | </ul> | |
134 | </li> |
|
135 | </li> | |
135 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a> |
|
136 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a> | |
136 | <ul id="view_menu" class="dropdown-menu"> |
|
137 | <ul id="view_menu" class="dropdown-menu"> | |
137 | <li id="toggle_header" |
|
138 | <li id="toggle_header" | |
138 | title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)"> |
|
139 | title="Show/Hide the IPython Notebook logo and notebook title (above menu bar)"> | |
139 | <a href="#">Toggle Header</a></li> |
|
140 | <a href="#">Toggle Header</a></li> | |
140 | <li id="toggle_toolbar" |
|
141 | <li id="toggle_toolbar" | |
141 | title="Show/Hide the action icons (below menu bar)"> |
|
142 | title="Show/Hide the action icons (below menu bar)"> | |
142 | <a href="#">Toggle Toolbar</a></li> |
|
143 | <a href="#">Toggle Toolbar</a></li> | |
143 | </ul> |
|
144 | </ul> | |
144 | </li> |
|
145 | </li> | |
145 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a> |
|
146 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Insert</a> | |
146 | <ul id="insert_menu" class="dropdown-menu"> |
|
147 | <ul id="insert_menu" class="dropdown-menu"> | |
147 | <li id="insert_cell_above" |
|
148 | <li id="insert_cell_above" | |
148 | title="Insert an empty Code cell above the currently active cell"> |
|
149 | title="Insert an empty Code cell above the currently active cell"> | |
149 | <a href="#">Insert Cell Above</a></li> |
|
150 | <a href="#">Insert Cell Above</a></li> | |
150 | <li id="insert_cell_below" |
|
151 | <li id="insert_cell_below" | |
151 | title="Insert an empty Code cell below the currently active cell"> |
|
152 | title="Insert an empty Code cell below the currently active cell"> | |
152 | <a href="#">Insert Cell Below</a></li> |
|
153 | <a href="#">Insert Cell Below</a></li> | |
153 | </ul> |
|
154 | </ul> | |
154 | </li> |
|
155 | </li> | |
155 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a> |
|
156 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Cell</a> | |
156 | <ul id="cell_menu" class="dropdown-menu"> |
|
157 | <ul id="cell_menu" class="dropdown-menu"> | |
157 | <li id="run_cell" title="Run this cell, and move cursor to the next one"> |
|
158 | <li id="run_cell" title="Run this cell, and move cursor to the next one"> | |
158 | <a href="#">Run</a></li> |
|
159 | <a href="#">Run</a></li> | |
159 | <li id="run_cell_select_below" title="Run this cell, select below"> |
|
160 | <li id="run_cell_select_below" title="Run this cell, select below"> | |
160 | <a href="#">Run and Select Below</a></li> |
|
161 | <a href="#">Run and Select Below</a></li> | |
161 | <li id="run_cell_insert_below" title="Run this cell, insert below"> |
|
162 | <li id="run_cell_insert_below" title="Run this cell, insert below"> | |
162 | <a href="#">Run and Insert Below</a></li> |
|
163 | <a href="#">Run and Insert Below</a></li> | |
163 | <li id="run_all_cells" title="Run all cells in the notebook"> |
|
164 | <li id="run_all_cells" title="Run all cells in the notebook"> | |
164 | <a href="#">Run All</a></li> |
|
165 | <a href="#">Run All</a></li> | |
165 | <li id="run_all_cells_above" title="Run all cells above (but not including) this cell"> |
|
166 | <li id="run_all_cells_above" title="Run all cells above (but not including) this cell"> | |
166 | <a href="#">Run All Above</a></li> |
|
167 | <a href="#">Run All Above</a></li> | |
167 | <li id="run_all_cells_below" title="Run this cell and all cells below it"> |
|
168 | <li id="run_all_cells_below" title="Run this cell and all cells below it"> | |
168 | <a href="#">Run All Below</a></li> |
|
169 | <a href="#">Run All Below</a></li> | |
169 | <li class="divider"></li> |
|
170 | <li class="divider"></li> | |
170 | <li id="change_cell_type" class="dropdown-submenu" |
|
171 | <li id="change_cell_type" class="dropdown-submenu" | |
171 | title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells"> |
|
172 | title="All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells"> | |
172 | <a href="#">Cell Type</a> |
|
173 | <a href="#">Cell Type</a> | |
173 | <ul class="dropdown-menu"> |
|
174 | <ul class="dropdown-menu"> | |
174 | <li id="to_code" |
|
175 | <li id="to_code" | |
175 | title="Contents will be sent to the kernel for execution, and output will display in the footer of cell"> |
|
176 | title="Contents will be sent to the kernel for execution, and output will display in the footer of cell"> | |
176 | <a href="#">Code</a></li> |
|
177 | <a href="#">Code</a></li> | |
177 | <li id="to_markdown" |
|
178 | <li id="to_markdown" | |
178 | title="Contents will be rendered as HTML and serve as explanatory text"> |
|
179 | title="Contents will be rendered as HTML and serve as explanatory text"> | |
179 | <a href="#">Markdown</a></li> |
|
180 | <a href="#">Markdown</a></li> | |
180 | <li id="to_raw" |
|
181 | <li id="to_raw" | |
181 | title="Contents will pass through nbconvert unmodified"> |
|
182 | title="Contents will pass through nbconvert unmodified"> | |
182 | <a href="#">Raw NBConvert</a></li> |
|
183 | <a href="#">Raw NBConvert</a></li> | |
183 | </ul> |
|
184 | </ul> | |
184 | </li> |
|
185 | </li> | |
185 | <li class="divider"></li> |
|
186 | <li class="divider"></li> | |
186 | <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a> |
|
187 | <li id="current_outputs" class="dropdown-submenu"><a href="#">Current Output</a> | |
187 | <ul class="dropdown-menu"> |
|
188 | <ul class="dropdown-menu"> | |
188 | <li id="toggle_current_output" |
|
189 | <li id="toggle_current_output" | |
189 | title="Hide/Show the output of the current cell"> |
|
190 | title="Hide/Show the output of the current cell"> | |
190 | <a href="#">Toggle</a> |
|
191 | <a href="#">Toggle</a> | |
191 | </li> |
|
192 | </li> | |
192 | <li id="toggle_current_output_scroll" |
|
193 | <li id="toggle_current_output_scroll" | |
193 | title="Scroll the output of the current cell"> |
|
194 | title="Scroll the output of the current cell"> | |
194 | <a href="#">Toggle Scrolling</a> |
|
195 | <a href="#">Toggle Scrolling</a> | |
195 | </li> |
|
196 | </li> | |
196 | <li id="clear_current_output" |
|
197 | <li id="clear_current_output" | |
197 | title="Clear the output of the current cell"> |
|
198 | title="Clear the output of the current cell"> | |
198 | <a href="#">Clear</a> |
|
199 | <a href="#">Clear</a> | |
199 | </li> |
|
200 | </li> | |
200 | </ul> |
|
201 | </ul> | |
201 | </li> |
|
202 | </li> | |
202 | <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a> |
|
203 | <li id="all_outputs" class="dropdown-submenu"><a href="#">All Output</a> | |
203 | <ul class="dropdown-menu"> |
|
204 | <ul class="dropdown-menu"> | |
204 | <li id="toggle_all_output" |
|
205 | <li id="toggle_all_output" | |
205 | title="Hide/Show the output of all cells"> |
|
206 | title="Hide/Show the output of all cells"> | |
206 | <a href="#">Toggle</a> |
|
207 | <a href="#">Toggle</a> | |
207 | </li> |
|
208 | </li> | |
208 | <li id="toggle_all_output_scroll" |
|
209 | <li id="toggle_all_output_scroll" | |
209 | title="Scroll the output of all cells"> |
|
210 | title="Scroll the output of all cells"> | |
210 | <a href="#">Toggle Scrolling</a> |
|
211 | <a href="#">Toggle Scrolling</a> | |
211 | </li> |
|
212 | </li> | |
212 | <li id="clear_all_output" |
|
213 | <li id="clear_all_output" | |
213 | title="Clear the output of all cells"> |
|
214 | title="Clear the output of all cells"> | |
214 | <a href="#">Clear</a> |
|
215 | <a href="#">Clear</a> | |
215 | </li> |
|
216 | </li> | |
216 | </ul> |
|
217 | </ul> | |
217 | </li> |
|
218 | </li> | |
218 | </ul> |
|
219 | </ul> | |
219 | </li> |
|
220 | </li> | |
220 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a> |
|
221 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kernel</a> | |
221 | <ul id="kernel_menu" class="dropdown-menu"> |
|
222 | <ul id="kernel_menu" class="dropdown-menu"> | |
222 | <li id="int_kernel" |
|
223 | <li id="int_kernel" | |
223 | title="Send KeyboardInterrupt (CTRL-C) to the Kernel"> |
|
224 | title="Send KeyboardInterrupt (CTRL-C) to the Kernel"> | |
224 | <a href="#">Interrupt</a> |
|
225 | <a href="#">Interrupt</a> | |
225 | </li> |
|
226 | </li> | |
226 | <li id="restart_kernel" |
|
227 | <li id="restart_kernel" | |
227 | title="Restart the Kernel"> |
|
228 | title="Restart the Kernel"> | |
228 | <a href="#">Restart</a> |
|
229 | <a href="#">Restart</a> | |
229 | </li> |
|
230 | </li> | |
230 | <li id="reconnect_kernel" |
|
231 | <li id="reconnect_kernel" | |
231 | title="Reconnect to the Kernel"> |
|
232 | title="Reconnect to the Kernel"> | |
232 | <a href="#">Reconnect</a> |
|
233 | <a href="#">Reconnect</a> | |
233 | </li> |
|
234 | </li> | |
234 | <li class="divider"></li> |
|
235 | <li class="divider"></li> | |
235 | <li id="menu-change-kernel" class="dropdown-submenu"> |
|
236 | <li id="menu-change-kernel" class="dropdown-submenu"> | |
236 | <a href="#">Change kernel</a> |
|
237 | <a href="#">Change kernel</a> | |
237 | <ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul> |
|
238 | <ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul> | |
238 | </li> |
|
239 | </li> | |
239 | </ul> |
|
240 | </ul> | |
240 | </li> |
|
241 | </li> | |
241 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a> |
|
242 | <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a> | |
242 | <ul id="help_menu" class="dropdown-menu"> |
|
243 | <ul id="help_menu" class="dropdown-menu"> | |
243 | <li id="notebook_tour" title="A quick tour of the notebook user interface"><a href="#">User Interface Tour</a></li> |
|
244 | <li id="notebook_tour" title="A quick tour of the notebook user interface"><a href="#">User Interface Tour</a></li> | |
244 | <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li> |
|
245 | <li id="keyboard_shortcuts" title="Opens a tooltip with all keyboard shortcuts"><a href="#">Keyboard Shortcuts</a></li> | |
245 | <li class="divider"></li> |
|
246 | <li class="divider"></li> | |
246 | {% set |
|
247 | {% set | |
247 | sections = ( |
|
248 | sections = ( | |
248 | ( |
|
249 | ( | |
249 | ("http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb", "Notebook Help", True), |
|
250 | ("http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Index.ipynb", "Notebook Help", True), | |
250 | ("http://help.github.com/articles/github-flavored-markdown","Markdown",True), |
|
251 | ("http://help.github.com/articles/github-flavored-markdown","Markdown",True), | |
251 | ), |
|
252 | ), | |
252 | ) |
|
253 | ) | |
253 | %} |
|
254 | %} | |
254 |
|
255 | |||
255 | {% for helplinks in sections %} |
|
256 | {% for helplinks in sections %} | |
256 | {% for link in helplinks %} |
|
257 | {% for link in helplinks %} | |
257 | <li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}> |
|
258 | <li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}> | |
258 | {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}} |
|
259 | {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}} | |
259 | {{link[1]}} |
|
260 | {{link[1]}} | |
260 | </a></li> |
|
261 | </a></li> | |
261 | {% endfor %} |
|
262 | {% endfor %} | |
262 | {% if not loop.last %} |
|
263 | {% if not loop.last %} | |
263 | <li class="divider"></li> |
|
264 | <li class="divider"></li> | |
264 | {% endif %} |
|
265 | {% endif %} | |
265 | {% endfor %} |
|
266 | {% endfor %} | |
266 | <li class="divider"></li> |
|
267 | <li class="divider"></li> | |
267 | <li title="About IPython Notebook"><a id="notebook_about" href="#">About</a></li> |
|
268 | <li title="About IPython Notebook"><a id="notebook_about" href="#">About</a></li> | |
268 | </ul> |
|
269 | </ul> | |
269 | </li> |
|
270 | </li> | |
270 | </ul> |
|
271 | </ul> | |
271 | </div> |
|
272 | </div> | |
272 | </div> |
|
273 | </div> | |
273 | </div> |
|
274 | </div> | |
274 | </div> |
|
275 | </div> | |
275 |
|
276 | |||
276 | <div id="maintoolbar" class="navbar"> |
|
277 | <div id="maintoolbar" class="navbar"> | |
277 | <div class="toolbar-inner navbar-inner navbar-nobg"> |
|
278 | <div class="toolbar-inner navbar-inner navbar-nobg"> | |
278 | <div id="maintoolbar-container" class="container"></div> |
|
279 | <div id="maintoolbar-container" class="container"></div> | |
279 | </div> |
|
280 | </div> | |
280 | </div> |
|
281 | </div> | |
281 | </div> |
|
282 | </div> | |
282 |
|
283 | |||
283 | <div class="lower-header-bar"></div> |
|
284 | <div class="lower-header-bar"></div> | |
284 | {% endblock header %} |
|
285 | {% endblock header %} | |
285 |
|
286 | |||
286 | {% block site %} |
|
287 | {% block site %} | |
287 |
|
288 | |||
288 |
|
289 | |||
289 | <div id="ipython-main-app"> |
|
290 | <div id="ipython-main-app"> | |
290 | <div id="notebook_panel"> |
|
291 | <div id="notebook_panel"> | |
291 | <div id="notebook"></div> |
|
292 | <div id="notebook"></div> | |
292 | </div> |
|
293 | </div> | |
293 | </div> |
|
294 | </div> | |
294 |
|
295 | |||
295 | <div id="pager"> |
|
296 | <div id="pager"> | |
296 | <div id="pager-contents"> |
|
297 | <div id="pager-contents"> | |
297 | <div id="pager-container" class="container"></div> |
|
298 | <div id="pager-container" class="container"></div> | |
298 | </div> |
|
299 | </div> | |
299 | <div id='pager-button-area'></div> |
|
300 | <div id='pager-button-area'></div> | |
300 | </div> |
|
301 | </div> | |
301 |
|
302 | |||
302 | <div id='tooltip' class='ipython_tooltip' style='display:none'></div> |
|
303 | <div id='tooltip' class='ipython_tooltip' style='display:none'></div> | |
303 |
|
304 | |||
304 |
|
305 | |||
305 | {% endblock %} |
|
306 | {% endblock %} | |
306 |
|
307 | |||
307 |
|
308 | |||
308 | {% block script %} |
|
309 | {% block script %} | |
309 | {{super()}} |
|
310 | {{super()}} | |
310 | <script type="text/javascript"> |
|
311 | <script type="text/javascript"> | |
311 | sys_info = {{sys_info}}; |
|
312 | sys_info = {{sys_info}}; | |
312 | </script> |
|
313 | </script> | |
313 |
|
314 | |||
314 | <script src="{{ static_url("components/text-encoding/lib/encoding.js") }}" charset="utf-8"></script> |
|
315 | <script src="{{ static_url("components/text-encoding/lib/encoding.js") }}" charset="utf-8"></script> | |
315 |
|
316 | |||
316 | <script src="{{ static_url("notebook/js/main.js") }}" charset="utf-8"></script> |
|
317 | <script src="{{ static_url("notebook/js/main.js") }}" charset="utf-8"></script> | |
317 |
|
318 | |||
318 | {% endblock %} |
|
319 | {% endblock %} |
@@ -1,121 +1,121 b'' | |||||
1 | <!DOCTYPE HTML> |
|
1 | <!DOCTYPE HTML> | |
2 | <html> |
|
2 | <html> | |
3 |
|
3 | |||
4 | <head> |
|
4 | <head> | |
5 | <meta charset="utf-8"> |
|
5 | <meta charset="utf-8"> | |
6 |
|
6 | |||
7 | <title>{% block title %}IPython Notebook{% endblock %}</title> |
|
7 | <title>{% block title %}IPython Notebook{% endblock %}</title> | |
8 | {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">{% endblock %} |
|
8 | {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">{% endblock %} | |
9 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
|
9 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
10 | <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" /> |
|
10 | <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" /> | |
11 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
11 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
12 |
|
12 | |||
13 | {% block stylesheet %} |
|
13 | {% block stylesheet %} | |
14 | <link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/> |
|
14 | <link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/> | |
15 | {% endblock %} |
|
15 | {% endblock %} | |
16 | <link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" /> |
|
16 | <link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" /> | |
17 | <script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script> |
|
17 | <script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script> | |
18 | <script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script> |
|
18 | <script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script> | |
19 | <script> |
|
19 | <script> | |
20 | require.config({ |
|
20 | require.config({ | |
21 | {% if version_hash %} |
|
21 | {% if version_hash %} | |
22 | urlArgs: "v={{version_hash}}", |
|
22 | urlArgs: "v={{version_hash}}", | |
23 | {% endif %} |
|
23 | {% endif %} | |
24 | baseUrl: '{{static_url("", include_version=False)}}', |
|
24 | baseUrl: '{{static_url("", include_version=False)}}', | |
25 | paths: { |
|
25 | paths: { | |
26 | nbextensions : '{{ base_url }}nbextensions', |
|
26 | nbextensions : '{{ base_url }}nbextensions', | |
27 | kernelspecs : '{{ base_url }}kernelspecs', |
|
27 | kernelspecs : '{{ base_url }}kernelspecs', | |
28 | underscore : 'components/underscore/underscore-min', |
|
28 | underscore : 'components/underscore/underscore-min', | |
29 | backbone : 'components/backbone/backbone-min', |
|
29 | backbone : 'components/backbone/backbone-min', | |
30 | jquery: 'components/jquery/jquery.min', |
|
30 | jquery: 'components/jquery/jquery.min', | |
31 | bootstrap: 'components/bootstrap/js/bootstrap.min', |
|
31 | bootstrap: 'components/bootstrap/js/bootstrap.min', | |
32 | bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min', |
|
32 | bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min', | |
33 | jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min', |
|
33 | jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min', | |
34 | moment: 'components/moment/moment', |
|
34 | moment: 'components/moment/moment', | |
35 | codemirror: 'components/codemirror', |
|
35 | codemirror: 'components/codemirror', | |
36 | termjs: 'components/term.js/src/term', |
|
36 | termjs: 'components/term.js/src/term', | |
37 | }, |
|
37 | }, | |
38 | shim: { |
|
38 | shim: { | |
39 | underscore: { |
|
39 | underscore: { | |
40 | exports: '_' |
|
40 | exports: '_' | |
41 | }, |
|
41 | }, | |
42 | backbone: { |
|
42 | backbone: { | |
43 | deps: ["underscore", "jquery"], |
|
43 | deps: ["underscore", "jquery"], | |
44 | exports: "Backbone" |
|
44 | exports: "Backbone" | |
45 | }, |
|
45 | }, | |
46 | bootstrap: { |
|
46 | bootstrap: { | |
47 | deps: ["jquery"], |
|
47 | deps: ["jquery"], | |
48 | exports: "bootstrap" |
|
48 | exports: "bootstrap" | |
49 | }, |
|
49 | }, | |
50 | bootstraptour: { |
|
50 | bootstraptour: { | |
51 | deps: ["bootstrap"], |
|
51 | deps: ["bootstrap"], | |
52 | exports: "Tour" |
|
52 | exports: "Tour" | |
53 | }, |
|
53 | }, | |
54 | jqueryui: { |
|
54 | jqueryui: { | |
55 | deps: ["jquery"], |
|
55 | deps: ["jquery"], | |
56 | exports: "$" |
|
56 | exports: "$" | |
57 | } |
|
57 | } | |
58 | } |
|
58 | } | |
59 | }); |
|
59 | }); | |
60 |
|
60 | |||
61 | require.config({ |
|
61 | require.config({ | |
62 | map: { |
|
62 | map: { | |
63 | '*':{ |
|
63 | '*':{ | |
64 | 'contents': '{{ contents_js_source }}', |
|
64 | 'contents': '{{ contents_js_source }}', | |
65 | } |
|
65 | } | |
66 | } |
|
66 | } | |
67 | }); |
|
67 | }); | |
68 | </script> |
|
68 | </script> | |
69 |
|
69 | |||
70 | {% block meta %} |
|
70 | {% block meta %} | |
71 | {% endblock %} |
|
71 | {% endblock %} | |
72 |
|
72 | |||
73 | </head> |
|
73 | </head> | |
74 |
|
74 | |||
75 | <body {% block params %}{% endblock %}> |
|
75 | <body class="{% block bodyclasses %}{% endblock %}" {% block params %}{% endblock %}> | |
76 |
|
76 | |||
77 | <noscript> |
|
77 | <noscript> | |
78 | <div id='noscript'> |
|
78 | <div id='noscript'> | |
79 | IPython Notebook requires JavaScript.<br> |
|
79 | IPython Notebook requires JavaScript.<br> | |
80 | Please enable it to proceed. |
|
80 | Please enable it to proceed. | |
81 | </div> |
|
81 | </div> | |
82 | </noscript> |
|
82 | </noscript> | |
83 |
|
83 | |||
84 | <div id="header" class="navbar navbar-fixed-top"> |
|
84 | <div id="header" class="navbar navbar-fixed-top"> | |
85 | <div id="header-container" class="container"> |
|
85 | <div id="header-container" class="container"> | |
86 | <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{base_url}}tree" title='dashboard'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div> |
|
86 | <div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{base_url}}tree" title='dashboard'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div> | |
87 |
|
87 | |||
88 | {% block login_widget %} |
|
88 | {% block login_widget %} | |
89 |
|
89 | |||
90 | <span id="login_widget"> |
|
90 | <span id="login_widget"> | |
91 | {% if logged_in %} |
|
91 | {% if logged_in %} | |
92 | <button id="logout" class="btn btn-sm navbar-btn">Logout</button> |
|
92 | <button id="logout" class="btn btn-sm navbar-btn">Logout</button> | |
93 | {% elif login_available and not logged_in %} |
|
93 | {% elif login_available and not logged_in %} | |
94 | <button id="login" class="btn btn-sm navbar-btn">Login</button> |
|
94 | <button id="login" class="btn btn-sm navbar-btn">Login</button> | |
95 | {% endif %} |
|
95 | {% endif %} | |
96 | </span> |
|
96 | </span> | |
97 |
|
97 | |||
98 | {% endblock %} |
|
98 | {% endblock %} | |
99 |
|
99 | |||
100 | {% block headercontainer %} |
|
100 | {% block headercontainer %} | |
101 | {% endblock %} |
|
101 | {% endblock %} | |
102 | </div> |
|
102 | </div> | |
103 | <div class="header-bar"></div> |
|
103 | <div class="header-bar"></div> | |
104 |
|
104 | |||
105 | {% block header %} |
|
105 | {% block header %} | |
106 | {% endblock %} |
|
106 | {% endblock %} | |
107 | </div> |
|
107 | </div> | |
108 |
|
108 | |||
109 | <div id="header-spacer"></div> |
|
109 | <div id="header-spacer"></div> | |
110 |
|
110 | |||
111 | <div id="site"> |
|
111 | <div id="site"> | |
112 | {% block site %} |
|
112 | {% block site %} | |
113 | {% endblock %} |
|
113 | {% endblock %} | |
114 | </div> |
|
114 | </div> | |
115 |
|
115 | |||
116 | {% block script %} |
|
116 | {% block script %} | |
117 | {% endblock %} |
|
117 | {% endblock %} | |
118 |
|
118 | |||
119 | </body> |
|
119 | </body> | |
120 |
|
120 | |||
121 | </html> |
|
121 | </html> |
@@ -1,63 +1,64 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 bodyclasses %}terminal-app {{super()}}{% endblock %} | |||
|
6 | ||||
5 | {% block params %} |
|
7 | {% block params %} | |
6 |
|
8 | |||
7 | data-base-url="{{base_url}}" |
|
9 | data-base-url="{{base_url}}" | |
8 | data-ws-path="{{ws_path}}" |
|
10 | data-ws-path="{{ws_path}}" | |
9 | class="terminal-app" |
|
|||
10 |
|
11 | |||
11 | {% endblock %} |
|
12 | {% endblock %} | |
12 |
|
13 | |||
13 | {% block stylesheet %} |
|
14 | {% block stylesheet %} | |
14 | {{super()}} |
|
15 | {{super()}} | |
15 |
|
16 | |||
16 | <link rel="stylesheet" href="{{ static_url("terminal/css/override.css") }}" type="text/css" /> |
|
17 | <link rel="stylesheet" href="{{ static_url("terminal/css/override.css") }}" type="text/css" /> | |
17 | {% endblock %} |
|
18 | {% endblock %} | |
18 |
|
19 | |||
19 | {% block site %} |
|
20 | {% block site %} | |
20 |
|
21 | |||
21 | <div id="terminado-container" class="container"></div> |
|
22 | <div id="terminado-container" class="container"></div> | |
22 |
|
23 | |||
23 | {% endblock %} |
|
24 | {% endblock %} | |
24 |
|
25 | |||
25 | {% block script %} |
|
26 | {% block script %} | |
26 |
|
27 | |||
27 | <!-- Hack: this needs to be outside the display:none block, so we can measure |
|
28 | <!-- Hack: this needs to be outside the display:none block, so we can measure | |
28 | its size in JS in setting up the page. It is still invisible. Putting in |
|
29 | its size in JS in setting up the page. It is still invisible. Putting in | |
29 | the script block gets it outside the initially undisplayed region. --> |
|
30 | the script block gets it outside the initially undisplayed region. --> | |
30 | <!-- test size: 25x80 --> |
|
31 | <!-- test size: 25x80 --> | |
31 | <div style='position:absolute; left:-1000em'> |
|
32 | <div style='position:absolute; left:-1000em'> | |
32 | <pre id="dummy-screen" style="border: solid 5px white;" class="terminal">0 |
|
33 | <pre id="dummy-screen" style="border: solid 5px white;" class="terminal">0 | |
33 | 1 |
|
34 | 1 | |
34 | 2 |
|
35 | 2 | |
35 | 3 |
|
36 | 3 | |
36 | 4 |
|
37 | 4 | |
37 | 5 |
|
38 | 5 | |
38 | 6 |
|
39 | 6 | |
39 | 7 |
|
40 | 7 | |
40 | 8 |
|
41 | 8 | |
41 | 9 |
|
42 | 9 | |
42 | 0 |
|
43 | 0 | |
43 | 1 |
|
44 | 1 | |
44 | 2 |
|
45 | 2 | |
45 | 3 |
|
46 | 3 | |
46 | 4 |
|
47 | 4 | |
47 | 5 |
|
48 | 5 | |
48 | 6 |
|
49 | 6 | |
49 | 7 |
|
50 | 7 | |
50 | 8 |
|
51 | 8 | |
51 | 9 |
|
52 | 9 | |
52 | 0 |
|
53 | 0 | |
53 | 1 |
|
54 | 1 | |
54 | 2 |
|
55 | 2 | |
55 | 3 |
|
56 | 3 | |
56 | <span id="dummy-screen-rows" style="">01234567890123456789012345678901234567890123456789012345678901234567890123456789</span> |
|
57 | <span id="dummy-screen-rows" style="">01234567890123456789012345678901234567890123456789012345678901234567890123456789</span> | |
57 | </pre> |
|
58 | </pre> | |
58 | </div> |
|
59 | </div> | |
59 |
|
60 | |||
60 | {{super()}} |
|
61 | {{super()}} | |
61 |
|
62 | |||
62 | <script src="{{ static_url("terminal/js/main.js") }}" type="text/javascript" charset="utf-8"></script> |
|
63 | <script src="{{ static_url("terminal/js/main.js") }}" type="text/javascript" charset="utf-8"></script> | |
63 | {% endblock %} |
|
64 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now