mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
Merge pull request #4950 from millenniumhand/patch-1
Fixed code formatting for implicit_spawn_seconds (#4949)
This commit is contained in:
@@ -56,20 +56,18 @@
|
|||||||
{% block script %}
|
{% block script %}
|
||||||
{{ super () }}
|
{{ super () }}
|
||||||
{% if implicit_spawn_seconds %}
|
{% if implicit_spawn_seconds %}
|
||||||
|
{# djlint:off #}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var spawn_url = "{{ spawn_url }}";
|
var spawn_url = "{{ spawn_url }}";
|
||||||
var implicit_spawn_seconds = {
|
var implicit_spawn_seconds = {{ implicit_spawn_seconds }};
|
||||||
{
|
|
||||||
implicit_spawn_seconds
|
|
||||||
}
|
|
||||||
};
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
console.log("redirecting to spawn at", spawn_url);
|
console.log("redirecting to spawn at", spawn_url);
|
||||||
window.location = spawn_url;
|
window.location = spawn_url;
|
||||||
},
|
},
|
||||||
1000 * implicit_spawn_seconds
|
1000 * implicit_spawn_seconds
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
{# djlint:on #}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
require(["not_running"]);
|
require(["not_running"]);
|
||||||
|
Reference in New Issue
Block a user