From 59da7c430587d5fef754879d0cd8e90c57cb7595 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 21 May 2024 12:47:51 -0500 Subject: [PATCH] Announcement --- helm/chart/config.yaml | 3 +++ helm/chart/files/etc/jupyterhub/templates/page.html | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/helm/chart/config.yaml b/helm/chart/config.yaml index 54ead0c..7d31748 100644 --- a/helm/chart/config.yaml +++ b/helm/chart/config.yaml @@ -88,6 +88,9 @@ daskhub: extraConfig: # mylabels: | # c.KubeSpawner.extra_labels = {} + announce: | + c.JupyterHub.template_vars = {'announcement': 'The Planetary Computer Hub is being retired on June 6th. See the GitHub Discussion for more information.'} + kubespawner: | c.KubeSpawner.start_timeout = 20 * 60 # 20 minutes 01-add-dask-gateway-values: | diff --git a/helm/chart/files/etc/jupyterhub/templates/page.html b/helm/chart/files/etc/jupyterhub/templates/page.html index 9961180..bc8d15e 100644 --- a/helm/chart/files/etc/jupyterhub/templates/page.html +++ b/helm/chart/files/etc/jupyterhub/templates/page.html @@ -223,6 +223,11 @@ min-height: 80vh; } + .announcement { + min-height: auto; + margin-top: 20px; + } + /* Login page styles */ .box { width: 45%; @@ -410,7 +415,7 @@ -