Debian Codegraph @

notebook/templates/edit.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>{{page_config['appName'] | e}} - Edit</title>
7 {% block favicon %}
8 <link rel="icon" type="image/x-icon" href="{{ base_url | escape }}static/favicons/favicon-file.ico" class="favicon">
9 {% endblock %}
10 </head>
11 <body data-notebook="edit">
12
13 {# Copy so we do not modify the page_config with updates. #}
14 {% set page_config_full = page_config.copy() %}
15
16 {# Set a dummy variable - we just want the side effect of the update. #}
17 {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %}
18
19 {# Sentinel value to say that we are on the tree page #}
20 {% set _ = page_config_full.update(notebookPage='edit') %}
21
22 <script id="jupyter-config-data" type="application/json">
23 {{ page_config_full | tojson }}
24 </script>
25 <script src="{{page_config['fullStaticUrl'] | e}}/bundle.js" main="index"></script>
26
27 <script type="text/javascript">
28 /* Remove token from URL. */
29 (function () {
30 var parsedUrl = new URL(window.location.href);
31 if (parsedUrl.searchParams.get('token')) {
32 parsedUrl.searchParams.delete('token');
33 window.history.replaceState({ }, '', parsedUrl.href);
34 }
35 })();
36 </script>
37
38 </body>
39 </html>