mirror of
https://github.com/stellarshenson/stellars-jupyterhub-ds.git
synced 2026-03-11 23:45:07 +00:00
- Rename 13 environment variables to use JUPYTERHUB_ prefix: - ENABLE_GPU_SUPPORT -> JUPYTERHUB_GPU_ENABLED - ENABLE_JUPYTERHUB_SSL -> JUPYTERHUB_SSL_ENABLED - ENABLE_SERVICE_* -> JUPYTERHUB_SERVICE_* - ENABLE_SIGNUP -> JUPYTERHUB_SIGNUP_ENABLED - DOCKER_NOTEBOOK_IMAGE -> JUPYTERHUB_NOTEBOOK_IMAGE - DOCKER_NETWORK_NAME -> JUPYTERHUB_NETWORK_NAME - NVIDIA_AUTODETECT_IMAGE -> JUPYTERHUB_NVIDIA_IMAGE - IDLE_CULLER_* -> JUPYTERHUB_IDLE_CULLER_* - Add SettingsPageHandler with admin-only access at /settings - Add Settings link to admin navbar - Sync templates from templates_enhanced to templates - Update README.md and CLAUDE.md documentation - No backward compatibility for old variable names
48 lines
1.4 KiB
HTML
48 lines
1.4 KiB
HTML
{% extends "page.html" %}
|
|
{% block login_widget %}
|
|
{% endblock login_widget %}
|
|
{% block main %}
|
|
<div class="error">
|
|
{% block h1_error %}
|
|
<h1>{{ status_code }} : {{ status_message }}</h1>
|
|
{% endblock h1_error %}
|
|
{% block error_detail %}
|
|
{% if message_html %}
|
|
<p>{{ message_html | safe }}</p>
|
|
{% elif message %}
|
|
<p>{{ message }}</p>
|
|
{% endif %}
|
|
{% if extra_error_html %}<p>{{ extra_error_html | safe }}</p>{% endif %}
|
|
{% endblock error_detail %}
|
|
</div>
|
|
{% endblock main %}
|
|
{% block script %}
|
|
{{ super() }}
|
|
<script type="text/javascript">
|
|
function _remove_redirects_from_url() {
|
|
if (window.location.search.length <= 1) {
|
|
return;
|
|
}
|
|
var search_parameters = window.location.search.slice(1).split('&');
|
|
for (var i = 0; i < search_parameters.length; i++) {
|
|
if (search_parameters[i].split('=')[0] === 'redirects') {
|
|
// remote redirects from search parameters
|
|
search_parameters.splice(i, 1);
|
|
var new_search = '';
|
|
if (search_parameters.length) {
|
|
new_search = '?' + search_parameters.join('&');
|
|
}
|
|
var new_url = window.location.origin +
|
|
window.location.pathname +
|
|
new_search +
|
|
window.location.hash;
|
|
window.history.replaceState({}, "", new_url);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
_remove_redirects_from_url();
|
|
</script>
|
|
{% endblock script %}
|