From a88125f2bc180910f68a355ae121f7574c407a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Wed, 24 Jul 2024 14:08:15 +0000 Subject: [PATCH] JupyterHub web templating - EOSC logo --- cesnet-central/deployments/fullhub.yaml | 30 ++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml index 0d1c88e..d5815ec 100644 --- a/cesnet-central/deployments/fullhub.yaml +++ b/cesnet-central/deployments/fullhub.yaml @@ -117,8 +117,8 @@ hub: display: false # recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml image: - name: eginotebooks/hub - tag: "sha-323c75e" + name: valtri/hub + tag: "eosc-logo" config: Authenticator: enable_auth_state: true @@ -423,12 +423,36 @@ hub: """ {% endraw %} extraFiles: + page.html: + mountPath: /egi-notebooks-hub/templates-eosc/page.html + stringData: |- +{%- raw %} + {% extends "templates/page.html" %} + {% block stylesheet %} + {{ super() }} + <style> + .eosc-logo { + width: 100%; + height: 16px; + margin-top: 10px; + margin-right: 20px; + } + </style> + {% endblock %} + {% block logo %} + <span id="eosc-logo" class="pull-left"> + <a href="{{logo_url or base_url}}"><img src="{{ static_url('images/EOSCA_logo.svg') }}" alt="EOSC logo" class="eosc-logo" title="Home"></a> + </span> + {% endblock %} +{% endraw %} welcome.html: - mountPath: /usr/local/share/jupyterhub/templates/welcome.html + mountPath: /egi-notebooks-hub/templates-eosc/welcome.html stringData: |- {%- raw %} {% extends "login.html" %} {% endraw %} + templatePaths: + - /egi-notebooks-hub/templates-eosc debug: enabled: true -- GitLab