##// END OF EJS Templates
Backport PR #8215: add header_buttons block to page template...
Min RK -
Show More
@@ -1,122 +1,126 b''
1 1 <!DOCTYPE HTML>
2 2 <html>
3 3
4 4 <head>
5 5 <meta charset="utf-8">
6 6
7 7 <title>{% block title %}IPython Notebook{% endblock %}</title>
8 8 {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">{% endblock %}
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
10 10 <link rel="stylesheet" href="{{static_url("components/jquery-ui/themes/smoothness/jquery-ui.min.css") }}" type="text/css" />
11 11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
12 12
13 13 {% block stylesheet %}
14 14 <link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/>
15 15 {% endblock %}
16 16 <link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" />
17 17 <script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script>
18 18 <script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
19 19 <script>
20 20 require.config({
21 21 {% if version_hash %}
22 22 urlArgs: "v={{version_hash}}",
23 23 {% endif %}
24 24 baseUrl: '{{static_url("", include_version=False)}}',
25 25 paths: {
26 26 nbextensions : '{{ base_url }}nbextensions',
27 27 kernelspecs : '{{ base_url }}kernelspecs',
28 28 underscore : 'components/underscore/underscore-min',
29 29 backbone : 'components/backbone/backbone-min',
30 30 jquery: 'components/jquery/jquery.min',
31 31 bootstrap: 'components/bootstrap/js/bootstrap.min',
32 32 bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
33 33 jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min',
34 34 moment: 'components/moment/moment',
35 35 codemirror: 'components/codemirror',
36 36 termjs: 'components/term.js/src/term',
37 37 },
38 38 shim: {
39 39 underscore: {
40 40 exports: '_'
41 41 },
42 42 backbone: {
43 43 deps: ["underscore", "jquery"],
44 44 exports: "Backbone"
45 45 },
46 46 bootstrap: {
47 47 deps: ["jquery"],
48 48 exports: "bootstrap"
49 49 },
50 50 bootstraptour: {
51 51 deps: ["bootstrap"],
52 52 exports: "Tour"
53 53 },
54 54 jqueryui: {
55 55 deps: ["jquery"],
56 56 exports: "$"
57 57 }
58 58 }
59 59 });
60 60
61 61 require.config({
62 62 map: {
63 63 '*':{
64 64 'contents': '{{ contents_js_source }}',
65 65 }
66 66 }
67 67 });
68 68 </script>
69 69
70 70 {% block meta %}
71 71 {% endblock %}
72 72
73 73 </head>
74 74
75 75 <body class="{% block bodyclasses %}{% endblock %}" {% block params %}{% endblock %}>
76 76
77 77 <noscript>
78 78 <div id='noscript'>
79 79 IPython Notebook requires JavaScript.<br>
80 80 Please enable it to proceed.
81 81 </div>
82 82 </noscript>
83 83
84 84 <div id="header">
85 85 <div id="header-container" class="container">
86 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 90 {% block login_widget %}
89 91
90 92 <span id="login_widget">
91 93 {% if logged_in %}
92 94 <button id="logout" class="btn btn-sm navbar-btn">Logout</button>
93 95 {% elif login_available and not logged_in %}
94 96 <button id="login" class="btn btn-sm navbar-btn">Login</button>
95 97 {% endif %}
96 98 </span>
97 99
98 100 {% endblock %}
99 101
102 {% endblock header_buttons %}
103
100 104 {% block headercontainer %}
101 105 {% endblock %}
102 106 </div>
103 107 <div class="header-bar"></div>
104 108
105 109 {% block header %}
106 110 {% endblock %}
107 111 </div>
108 112
109 113 <div id="site">
110 114 {% block site %}
111 115 {% endblock %}
112 116 </div>
113 117
114 118 {% block after_site %}
115 119 {% endblock %}
116 120
117 121 {% block script %}
118 122 {% endblock %}
119 123
120 124 </body>
121 125
122 126 </html>
General Comments 0
You need to be logged in to leave comments. Login now