| 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}} - Terminal</title> |
| 7 |
{% block favicon %} |
| 8 |
<link rel="icon" type="image/x-icon" href="{{ base_url | escape }}static/favicons/favicon-terminal.ico" class="favicon"> |
| 9 |
{% endblock %} |
| 10 |
|
| 11 |
{% if custom_css %} |
| 12 |
<link rel="stylesheet" type="text/css" href="{{ base_url | escape }}custom/custom.css"> |
| 13 |
{% endif %} |
| 14 |
</head> |
| 15 |
<body> |
| 16 |
|
| 17 |
{# Copy so we do not modify the page_config with updates. #} |
| 18 |
{% set page_config_full = page_config.copy() %} |
| 19 |
|
| 20 |
{# Set a dummy variable - we just want the side effect of the update. #} |
| 21 |
{% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} |
| 22 |
|
| 23 |
{# Sentinel value to say that we are on the tree page #} |
| 24 |
{% set _ = page_config_full.update(notebookPage='terminals') %} |
| 25 |
|
| 26 |
<script id="jupyter-config-data" type="application/json"> |
| 27 |
{{ page_config_full | tojson }} |
| 28 |
</script> |
| 29 |
<script src="{{page_config['fullStaticUrl'] | e}}/bundle.js" main="index"></script> |
| 30 |
|
| 31 |
<script type="text/javascript"> |
| 32 |
/* Remove token from URL. */ |
| 33 |
(function () { |
| 34 |
var parsedUrl = new URL(window.location.href); |
| 35 |
if (parsedUrl.searchParams.get('token')) { |
| 36 |
parsedUrl.searchParams.delete('token'); |
| 37 |
window.history.replaceState({ }, '', parsedUrl.href); |
| 38 |
} |
| 39 |
})(); |
| 40 |
</script> |
| 41 |
|
| 42 |
</body> |
| 43 |
</html> |