| 1 |
<!DOCTYPE HTML> |
| 2 |
<html> |
| 3 |
|
| 4 |
<head> |
| 5 |
|
| 6 |
<meta charset="utf-8"> |
| 7 |
|
| 8 |
<title>{% block title %}Jupyter Server{% endblock %}</title> |
| 9 |
{% block favicon %}<link id="favicon" rel="shortcut icon" type="image/x-icon" href="{{ static_url("favicon.ico") }}"> |
| 10 |
{% endblock %} |
| 11 |
<link rel="stylesheet" href="{{static_url("style/bootstrap.min.css") }}" /> |
| 12 |
<link rel="stylesheet" href="{{static_url("style/bootstrap-theme.min.css") }}" /> |
| 13 |
<link rel="stylesheet" href="{{static_url("style/index.css") }}" /> |
| 14 |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 15 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 16 |
|
| 17 |
{% block stylesheet %} |
| 18 |
{% endblock stylesheet %} |
| 19 |
|
| 20 |
{% block meta %} |
| 21 |
{% endblock meta %} |
| 22 |
|
| 23 |
</head> |
| 24 |
|
| 25 |
<body class="{% block bodyclasses %}{% endblock %}" {% block params %} {% if logged_in and token %} |
| 26 |
data-jupyter-api-token="{{token | urlencode}}" {% endif %} {% endblock params %} dir="ltr"> |
| 27 |
|
| 28 |
<noscript> |
| 29 |
<div id='noscript'> |
| 30 |
{% trans %}Jupyter Server requires JavaScript.{% endtrans %}<br> |
| 31 |
{% trans %}Please enable it to proceed. {% endtrans %} |
| 32 |
</div> |
| 33 |
</noscript> |
| 34 |
|
| 35 |
<div id="header" role="navigation" aria-label="{% trans %}Top Menu{% endtrans %}"> |
| 36 |
<div id="header-container" class="container"> |
| 37 |
<div id="jupyter_server" class="nav navbar-brand"><a href="{{default_url}}" title='{% trans %}dashboard{% endtrans %}'> |
| 38 |
{% block logo %}<img src='{{static_url("logo/logo.png") }}' alt='Jupyter Server' />{% endblock %} |
| 39 |
</a></div> |
| 40 |
|
| 41 |
{% block headercontainer %} |
| 42 |
{% endblock headercontainer %} |
| 43 |
|
| 44 |
{% block header_buttons %} |
| 45 |
{% endblock header_buttons %} |
| 46 |
|
| 47 |
</div> |
| 48 |
<div class="header-bar"></div> |
| 49 |
|
| 50 |
{% block header %} |
| 51 |
{% endblock header %} |
| 52 |
</div> |
| 53 |
|
| 54 |
<div id="site"> |
| 55 |
{% block site %} |
| 56 |
{% endblock site %} |
| 57 |
</div> |
| 58 |
|
| 59 |
{% block after_site %} |
| 60 |
{% endblock after_site %} |
| 61 |
|
| 62 |
{% block script %} |
| 63 |
{% endblock script %} |
| 64 |
|
| 65 |
<script type='text/javascript'> |
| 66 |
function _remove_token_from_url() { |
| 67 |
if (window.location.search.length <= 1) { |
| 68 |
return; |
| 69 |
} |
| 70 |
var search_parameters = window.location.search.slice(1).split('&'); |
| 71 |
for (var i = 0; i < search_parameters.length; i++) { |
| 72 |
if (search_parameters[i].split('=')[0] === 'token') { |
| 73 |
// remote token from search parameters |
| 74 |
search_parameters.splice(i, 1); |
| 75 |
var new_search = ''; |
| 76 |
if (search_parameters.length) { |
| 77 |
new_search = '?' + search_parameters.join('&'); |
| 78 |
} |
| 79 |
var new_url = window.location.origin + |
| 80 |
window.location.pathname + |
| 81 |
new_search + |
| 82 |
window.location.hash; |
| 83 |
window.history.replaceState({}, "", new_url); |
| 84 |
return; |
| 85 |
} |
| 86 |
} |
| 87 |
} |
| 88 |
_remove_token_from_url(); |
| 89 |
</script> |
| 90 |
</body> |
| 91 |
|
| 92 |
</html> |