-
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.
- Loading branch information
Showing
33 changed files
with
1,959 additions
and
14 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
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
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,2 @@ | ||
<!-- htmlhint doctype-first:false --> | ||
{% extends "403.html" %} |
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,18 @@ | ||
<!-- htmlhint doctype-first:false --> | ||
{% extends "error.html" %} | ||
{% block main %} | ||
<div class="ecl-container ecl-u-mv-xl container-fix"> | ||
<h1>Unauthorized!</h1> | ||
<p> | ||
Access to European Open Science Cloud - EU Node Interactive Notebooks is | ||
restricted to allowed users, please check your permissions at your | ||
<a href="https://open-science-cloud.ec.europa.eu/">EU Node profile</a> | ||
</p> | ||
<p> | ||
If you think you should be granted access already, please open an issue in | ||
<a href="https://open-science-cloud.ec.europa.eu/support/helpdesk" | ||
>the Helpdesk</a | ||
> | ||
</p> | ||
</div> | ||
{% endblock %} |
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,17 @@ | ||
<!-- htmlhint doctype-first:false,id-class-value:false --> | ||
{% extends "page.html" %} | ||
|
||
{% block main %} | ||
<div class="ecl-container ecl-u-mv-xl container-fix"> | ||
<div id="react-admin-hook"> | ||
<script id="jupyterhub-admin-config"> | ||
window.api_page_limit = parseInt("{{ api_page_limit|safe }}"); | ||
window.base_url = "{{ base_url|safe }}"; | ||
</script> | ||
<script src="{{ static_url('js/admin-react.js') }}"></script> | ||
</div> | ||
<div class="container-fluid navbar-default small version_footer"> | ||
<div class="navbar-text">JupyterHub {{ server_version }}</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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,60 @@ | ||
<!-- htmlhint doctype-first:false,id-class-value:false --> | ||
{% extends "page.html" %} | ||
{% if announcement_login %} | ||
{% set announcement = announcement_login %} | ||
{% endif %} | ||
|
||
{% block main %} | ||
<div id="main-page-content" class="ecl-u-mb-l container-fix"> | ||
<article> | ||
<div> | ||
<div class="ecl-u-mb-2xl"> | ||
<div> | ||
<section | ||
class="ecl-banner ecl-banner--text-highlight ecl-banner--m ecl-banner--full-width" | ||
> | ||
<picture class="ecl-picture ecl-banner__picture" | ||
><img | ||
class="ecl-banner__image" | ||
src="{{ static_url('images/EOSC-Visuals-Interactive-Notebooks-blue-2.jpg') }}" | ||
alt="Interactive notebooks" | ||
/></picture> | ||
<div class="ecl-container"> | ||
<div class="ecl-banner__container"> | ||
<div class="ecl-banner__content"> | ||
<div class="ecl-banner__title"> | ||
<span class="ecl-banner__title-text" | ||
>Interactive Notebooks</span | ||
> | ||
</div> | ||
<p class="ecl-banner__description"> | ||
<span class="ecl-banner__description-text" | ||
>Create and share documents with real-time code | ||
execution.</span | ||
> | ||
</p> | ||
<div class="ecl-banner__cta"> | ||
<a | ||
href="{{ authenticator_login_url }}" | ||
class="ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after ecl-banner__link-cta" | ||
><span class="ecl-link__label">Get Started</span | ||
><svg | ||
class="ecl-icon ecl-icon--xs ecl-icon--rotate-90 ecl-link__icon" | ||
focusable="false" | ||
aria-hidden="true" | ||
> | ||
<use | ||
xlink:href="{{ static_url('images/icons.svg#corner-arrow') }}" | ||
></use></svg | ||
></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!-- htmlhint doctype-first:false --> | ||
{% extends "page.html" %} | ||
{% block login_widget %} | ||
{% endblock login_widget %} | ||
{% block main %} | ||
<div class="ecl-container ecl-u-mv-xl container-fix"> | ||
{% block h1_error %} | ||
<h1>{{ status_code }} : {{ status_message }}</h1> | ||
{% endblock h1_error %} | ||
{% block error_detail %} | ||
{% if message %}<p>{{ message }}</p>{% endif %} | ||
{% if message_html %}<p>{{ message_html | safe }}</p>{% endif %} | ||
{% if extra_error_html %}<p>{{ extra_error_html | safe }}</p>{% endif %} | ||
{% endblock error_detail %} | ||
</div> | ||
{% endblock main %} | ||
{% block script %} | ||
{{ super() }} | ||
<script type="text/javascript"> | ||
function _remove_redirects_from_url() { | ||
if (window.location.search.length <= 1) { | ||
return; | ||
} | ||
var search_parameters = window.location.search.slice(1).split('&'); | ||
for (var i = 0; i < search_parameters.length; i++) { | ||
if (search_parameters[i].split('=')[0] === 'redirects') { | ||
// remote redirects from search parameters | ||
search_parameters.splice(i, 1); | ||
var new_search = ''; | ||
if (search_parameters.length) { | ||
new_search = '?' + search_parameters.join('&'); | ||
} | ||
var new_url = window.location.origin + | ||
window.location.pathname + | ||
new_search + | ||
window.location.hash; | ||
window.history.replaceState({}, "", new_url); | ||
return; | ||
} | ||
} | ||
} | ||
|
||
_remove_redirects_from_url(); | ||
</script> | ||
{% endblock script %} |
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,116 @@ | ||
<!-- htmlhint doctype-first:false,id-class-value:false,spec-char-escape:false --> | ||
{% extends "page.html" %} | ||
{% if announcement_home is string %} | ||
{% set announcement = announcement_home %} | ||
{% endif %} | ||
|
||
{% block main %} | ||
<div class="ecl-container ecl-u-mv-xl container-fix"> | ||
<h1 class="sr-only">JupyterHub home page</h1> | ||
<div class="row"> | ||
<div class="text-center"> | ||
{% if default_server.active %} | ||
<a id="stop" role="button" class="ecl-button ecl-button--secondary" | ||
>Stop My Server</a | ||
> | ||
{% endif %} | ||
<a | ||
id="start" | ||
role="button" | ||
class="ecl-button ecl-button--primary" | ||
href="{{ url }}" | ||
> | ||
{% if not default_server.active %}Start{% endif %} My Server | ||
</a> | ||
</div> | ||
</div> | ||
{% if allow_named_servers %} | ||
<h2>Named Servers</h2> | ||
<p> | ||
In addition to your default server, you may have additional | ||
{% if named_server_limit_per_user > 0 %}{{ named_server_limit_per_user }}{% endif %} | ||
server(s) with names. This allows you to have more than one server | ||
running at the same time. | ||
</p> | ||
{% set named_spawners = user.all_spawners(include_default=False)|list %} | ||
<table class="server-table table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Server name</th> | ||
<th>URL</th> | ||
<th>Last activity</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="home-server-row add-server-row"> | ||
<td colspan="4"> | ||
<div class="input-group"> | ||
<input | ||
class="new-server-name form-control" | ||
aria-label="server name" | ||
placeholder="name-your-server" | ||
/> | ||
<button | ||
role="button" | ||
type="button" | ||
class="new-server-btn ecl-button ecl-button--primary btn-xs" | ||
> | ||
Add New Server | ||
</button> | ||
</div> | ||
</td> | ||
</tr> | ||
{% for spawner in named_spawners %} | ||
<tr class="home-server-row" data-server-name="{{ spawner.name }}"> | ||
{# name #} | ||
<td>{{ spawner.name }}</td> | ||
{# url #} | ||
<td> | ||
<a | ||
class="server-link {% if not spawner.ready %}hidden{% endif %}" | ||
href="{{ user.server_url(spawner.name) }}" | ||
>{{ user.server_url(spawner.name) }}</a | ||
> | ||
</td> | ||
{# activity #} | ||
<td class="time-col"> | ||
{% if spawner.last_activity %} {{ spawner.last_activity.isoformat() + 'Z' }} {% else %} Never {% endif %} | ||
</td> | ||
{# actions #} | ||
<td> | ||
<a | ||
role="button" | ||
class="stop-server btn-xs ecl-button ecl-button--secondary {% if not spawner.active %} hidden{% endif %}" | ||
id="stop-{{ spawner.name }}" | ||
>stop</a | ||
> | ||
<a | ||
role="button" | ||
class="start-server btn-xs ecl-button ecl-button--primary {% if spawner.active %}hidden{% endif %}" | ||
id="start-{{ spawner.name }}" | ||
href="{{ base_url }}spawn/{{ user.name }}/{{ spawner.name }}" | ||
>start</a | ||
> | ||
<button | ||
role="button" | ||
class="delete-server btn-xs ecl-button ecl-button--secondary {% if spawner.active %} hidden{% endif %}" | ||
id="delete-{{ spawner.name }}" | ||
> | ||
delete | ||
</button> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endif %} | ||
</div> | ||
{% endblock main %} | ||
|
||
{% block script %} | ||
{{ super() }} | ||
<script type="text/javascript"> | ||
require(["home"]); | ||
</script> | ||
{% endblock %} |
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,2 @@ | ||
<!-- htmlhint doctype-first:false --> | ||
{% extends "egi-login.html" %} |
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,14 @@ | ||
<!-- htmlhint doctype-first:false --> | ||
{% extends "page.html" %} | ||
{% block meta %} | ||
<meta http-equiv="refresh" content="0; url=/" /> | ||
{% endblock %} | ||
{% if announcement_logout %} | ||
{% set announcement = announcement_logout %} | ||
{% endif %} | ||
|
||
{% block main %} | ||
<div id="logout-main" class="ecl-container"> | ||
<p>Successfully logged out.</p> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.