##// END OF EJS Templates
add header_buttons block to page template...
Min RK -
Show More
@@ -1,122 +1,126
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 class="{% block bodyclasses %}{% endblock %}" {% 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">
84 <div id="header">
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="{{default_url}}" 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="{{default_url}}" title='dashboard'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div>
87
87
88 {% block header_buttons %}
89
88 {% block login_widget %}
90 {% block login_widget %}
89
91
90 <span id="login_widget">
92 <span id="login_widget">
91 {% if logged_in %}
93 {% if logged_in %}
92 <button id="logout" class="btn btn-sm navbar-btn">Logout</button>
94 <button id="logout" class="btn btn-sm navbar-btn">Logout</button>
93 {% elif login_available and not logged_in %}
95 {% elif login_available and not logged_in %}
94 <button id="login" class="btn btn-sm navbar-btn">Login</button>
96 <button id="login" class="btn btn-sm navbar-btn">Login</button>
95 {% endif %}
97 {% endif %}
96 </span>
98 </span>
97
99
98 {% endblock %}
100 {% endblock %}
99
101
102 {% endblock header_buttons %}
103
100 {% block headercontainer %}
104 {% block headercontainer %}
101 {% endblock %}
105 {% endblock %}
102 </div>
106 </div>
103 <div class="header-bar"></div>
107 <div class="header-bar"></div>
104
108
105 {% block header %}
109 {% block header %}
106 {% endblock %}
110 {% endblock %}
107 </div>
111 </div>
108
112
109 <div id="site">
113 <div id="site">
110 {% block site %}
114 {% block site %}
111 {% endblock %}
115 {% endblock %}
112 </div>
116 </div>
113
117
114 {% block after_site %}
118 {% block after_site %}
115 {% endblock %}
119 {% endblock %}
116
120
117 {% block script %}
121 {% block script %}
118 {% endblock %}
122 {% endblock %}
119
123
120 </body>
124 </body>
121
125
122 </html>
126 </html>
General Comments 0
You need to be logged in to leave comments. Login now