We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On a fresh install, the spawn page displays the following:
When there is no user environment, the Start button is not needed.
We could extend the spawn.html base template and modify it to show a message.
spawn.html
The template will be added to: https://github.com/plasmabio/tljh-repo2docker/tree/master/tljh_repo2docker/templates
The custom template will override the base JupyterHub template: https://github.com/jupyterhub/jupyterhub/blob/77edffd695bbef3b132fb3e9f1c6f080a84977e2/share/jupyterhub/templates/spawn.html
The text was updated successfully, but these errors were encountered:
Maybe the simplest for now would be to define a custom spawn.yml in tljh_repo2docker/templates with a content similar to the following:
spawn.yml
{% extends "templates/spawn.html" %} {% block main %} <div class="container"> {% block heading %} <div class="row text-center"> <h1>User Environments</h1> </div> {% endblock %} <div class="row col-sm-offset-2 col-sm-8"> {% if for_user and user.name != for_user.name -%} <p>Spawning server for {{ for_user.name }}</p> {% endif -%} {% if error_message -%} <p class="spawn-error-msg text-danger"> Error: {{error_message}} </p> {% endif %} {% if 'label' in spawner_options_form -%} <form enctype="multipart/form-data" id="spawn_form" action="{{url}}" method="post" role="form"> {{spawner_options_form | safe}} <br> <input type="submit" value="Start" class="btn btn-jupyter form-control"> </form> {% else %} <p class="text-info"> No user environment available </p> {% endif %} </div> </div> {% endblock %}
Sorry, something went wrong.
No branches or pull requests
On a fresh install, the spawn page displays the following:
When there is no user environment, the Start button is not needed.
We could extend the
spawn.html
base template and modify it to show a message.The template will be added to: https://github.com/plasmabio/tljh-repo2docker/tree/master/tljh_repo2docker/templates
The custom template will override the base JupyterHub template: https://github.com/jupyterhub/jupyterhub/blob/77edffd695bbef3b132fb3e9f1c6f080a84977e2/share/jupyterhub/templates/spawn.html
The text was updated successfully, but these errors were encountered: