mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00

it was made a method for handing named_servers, but that made things way more complicated and replaced a boolean flag with a callable, which would behave unexpectedly but without error if a boolean flag was expected. Spawners have properties for dealing with this now, so use spawners Restore `user.running` as an alias for `user.spawner.ready`
27 lines
531 B
HTML
27 lines
531 B
HTML
{% extends "page.html" %}
|
|
|
|
{% block main %}
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="text-center">
|
|
{% if user.running %}
|
|
<a id="stop" class="btn btn-lg btn-danger">Stop My Server</a>
|
|
{% endif %}
|
|
<a id="start" class="btn btn-lg btn-success" href="{{ url }}">
|
|
{% if not user.running %}
|
|
Start
|
|
{% endif %}
|
|
My Server
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block script %}
|
|
<script type="text/javascript">
|
|
require(["home"]);
|
|
</script>
|
|
{% endblock %} |