Files
jupyterhub/share/jupyter/hub/templates/home.html
Min RK 922956def2 allow user.url to be accessed without the server running
Reduces the number of different ways we need to build the same URLs.
2016-03-09 09:30:50 +01:00

36 lines
777 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"
{% if user.running %}
href="{{ user.url }}"
{% else %}
href="{{base_url}}spawn"
{% endif %}
>
{% if not user.running %}
Start
{% endif %}
My Server
</a>
{% if user.admin %}
<a id="admin" class="btn btn-lg btn-primary" href="{{base_url}}admin">Admin</a>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% block script %}
<script type="text/javascript">
require(["home"]);
</script>
{% endblock %}