From 83ad9f03316f6feac68acc70ee1de11177fd04b5 Mon Sep 17 00:00:00 2001 From: Enol Fernandez Date: Thu, 12 Sep 2024 15:18:08 +0100 Subject: [PATCH] Linting fixes --- ec-templates/401.html | 21 +- ec-templates/403.html | 20 +- ec-templates/egi-login.html | 8 +- ec-templates/home.html | 191 ++++++++------- ec-templates/logout.html | 10 +- ec-templates/page.html | 395 +++++++++++++++++++++++++------- ec-templates/spawn.html | 87 ++++--- ec-templates/spawn_pending.html | 163 ++++++------- ec-templates/token.html | 392 +++++++++++++++++-------------- 9 files changed, 802 insertions(+), 485 deletions(-) diff --git a/ec-templates/401.html b/ec-templates/401.html index 069039d..5be7ff6 100644 --- a/ec-templates/401.html +++ b/ec-templates/401.html @@ -1,6 +1,6 @@ -{% extends "error.html" %} {% block main %} - +{% extends "error.html" %} +{% block main %}

Unauthorized!

@@ -17,12 +17,17 @@

Unauthorized!

See - - Documentation related to EGI Notebooks about granting access. You can also - place an - order in EOSC portal - for the Notebooks service if you are interested in your own community deployment. + + Documentation related to EGI Notebooks + about granting access. You can also + place an order in EOSC portal + for the Notebooks service if you are interested in your own community + deployment.

- {% endblock %} diff --git a/ec-templates/403.html b/ec-templates/403.html index 069039d..0bb3c36 100644 --- a/ec-templates/403.html +++ b/ec-templates/403.html @@ -1,6 +1,7 @@ -{% extends "error.html" %} {% block main %} +{% extends "error.html" %} +{% block main %}

Unauthorized!

@@ -17,12 +18,17 @@

Unauthorized!

See - - Documentation related to EGI Notebooks about granting access. You can also - place an - order in EOSC portal - for the Notebooks service if you are interested in your own community deployment. + + Documentation related to EGI Notebooks + about granting access. You can also + place an order in EOSC portal + for the Notebooks service if you are interested in your own community + deployment.

- {% endblock %} diff --git a/ec-templates/egi-login.html b/ec-templates/egi-login.html index 4ffb997..c4be3d5 100644 --- a/ec-templates/egi-login.html +++ b/ec-templates/egi-login.html @@ -1,6 +1,8 @@ - -{% extends "page.html" %} {% if announcement_login %} {% set announcement = -announcement_login %} {% endif %} + +{% extends "page.html" %} +{% if announcement_login %} + {% set announcement = announcement_login %} +{% endif %} {% block main %}
diff --git a/ec-templates/home.html b/ec-templates/home.html index b006884..f324afd 100644 --- a/ec-templates/home.html +++ b/ec-templates/home.html @@ -1,95 +1,112 @@ + {% extends "page.html" %} {% if announcement_home is string %} {% set announcement = announcement_home %} {% endif %} + {% block main %} -
-

JupyterHub home page

-
- +
+

JupyterHub home page

+
+ - {% if allow_named_servers %} -

Named Servers

-

- 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. -

- {% set named_spawners = user.all_spawners(include_default=False)|list %} - - - - - - - - - - - - - - {% for spawner in named_spawners %} - - {# name #} - - {# url #} - - {# activity #} - - {# actions #} - - - {% endfor %} - -
Server nameURLLast activityActions
-
- - -
-
{{ spawner.name }} - {{ user.server_url(spawner.name) }} - - {% if spawner.last_activity %} - {{ spawner.last_activity.isoformat() + 'Z' }} - {% else %} - Never - {% endif %} - - stop - start - -
- {% endif %}
-{% endblock main %} -{% block script %} - {{ super() }} - + {% if allow_named_servers %} +

Named Servers

+

+ 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. +

+ {% set named_spawners = user.all_spawners(include_default=False)|list %} + + + + + + + + + + + + + + {% for spawner in named_spawners %} + + {# name #} + + {# url #} + + {# activity #} + + {# actions #} + + + {% endfor %} + +
Server nameURLLast activityActions
+
+ + +
+
{{ spawner.name }} + {{ user.server_url(spawner.name) }} + + {% if spawner.last_activity %} {{ spawner.last_activity.isoformat() + 'Z' }} {% else %} Never {% endif %} + + stop + start + +
+ {% endif %} +
+{% endblock main %} {% block script %} {{ super() }} + {% endblock script %} diff --git a/ec-templates/logout.html b/ec-templates/logout.html index 8f7b578..895bc1a 100644 --- a/ec-templates/logout.html +++ b/ec-templates/logout.html @@ -1,20 +1,14 @@ {% extends "page.html" %} - {% block meta %} - + {% endblock %} - {% if announcement_logout %} {% set announcement = announcement_logout %} {% endif %} {% block main %} -
-

- Successfully logged out. -

+

Successfully logged out.

- {% endblock %} diff --git a/ec-templates/page.html b/ec-templates/page.html index ed6be04..a2266c8 100644 --- a/ec-templates/page.html +++ b/ec-templates/page.html @@ -1,11 +1,9 @@ - -{% extends "templates/page.html" %} -{% set service_name = service_name|default('Notebooks') %} + +{% extends "templates/page.html" %} +{% set service_name = service_name|default('Notebooks') %} {% block stylesheet %} - {{ super() }} - - + + {% endblock script %} -{% block title %}European Open Science Cloud - EU Node Interactive Notebooks{% endblock %} +{% block title %}European Open Science Cloud - EU Node Interactive Notebooks{% endblock title %} {% block nav_bar %} -
+
-
+
+ - European Commission + + European Commission -
- {% if user %} -
@@ -86,30 +136,121 @@
- European Open Science Cloud - EU Node Interactive Notebooks -
+ European Open Science Cloud - EU Node Interactive Notebooks +
-