-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating EC templates * Updating current templates with newest Jupyterhub 5 template updates from https://github.com/jupyterhub/jupyterhub/tree/a8500a31a9bc77a9829e903693462a7da38fee52/share/jupyterhub/templates * Fixing broken template * Fixing template content alignment * Fix linting --------- Co-authored-by: gonimoro <>
- Loading branch information
Showing
4 changed files
with
82 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!-- htmlhint doctype-first:false,id-class-value:false --> | ||
{# Copyright (c) Jupyter Development Team. #} | ||
{# Distributed under the terms of the Modified BSD License. #} | ||
{% extends "page.html" %} | ||
{% block login_widget %} | ||
{% endblock login_widget %} | ||
{% block main %} | ||
<div class="container"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-6"> | ||
<h1 class="text-center">Accept sharing invitation</h1> | ||
<p class="lead"> | ||
You ({{ user.name }}) have been invited to access {{ owner.name }}'s server | ||
{%- if spawner.name %}({{ spawner.name }}){%- endif %} at <a href="{{ spawner_url | safe }}">{{ spawner_url }}</a> | ||
</p> | ||
{% if not spawner_ready %} | ||
<p class="alert alert-danger"> | ||
The server at {{ spawner_url }} is not currently running. | ||
After accepting permission, you may need to ask {{ owner.name }} | ||
to start the server before you can access it. | ||
</p> | ||
{% endif %} | ||
<form method="post" action=""> | ||
<div class="card"> | ||
<div class="card-header"> | ||
By accepting the invitation, you will be granted the following permissions, | ||
restricted to this particular server: | ||
</div> | ||
<div class="card-body"> | ||
{# these are the 'real' inputs to the form -#} | ||
<input type="hidden" name="_xsrf" value="{{ xsrf }}" /> | ||
<input type="hidden" name="code" value="{{ code }}" /> | ||
{% for scope_info in scope_descriptions -%} | ||
<div class="form-check input-group"> | ||
<label> | ||
<span> | ||
{{ scope_info['description'] }} | ||
{% if scope_info['filter'] %}Applies to {{ scope_info['filter'] }}.{% endif %} | ||
</span> | ||
</label> | ||
</div> | ||
{% endfor -%} | ||
</div> | ||
<div class="card-footer"> | ||
<button type="submit" class="form-control ecl-button ecl-button--primary">Accept invitation</button> | ||
<p class="small"> | ||
After accepting the invitation, you will be redirected to <a href="{{ next_url | safe }}">{{ next_url }}</a>. | ||
</p> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock main %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,4 @@ <h1 class="text-center">Authorize access</h1> | |
</div> | ||
</div> | ||
</div> | ||
{% endblock main % | ||
{% endblock main %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters