diff options
| author | Pjotr <wrk@bosa.lan> | 2026-10-04 10:30:20 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-04 10:30:20 +0000 |
| commit | f2d53ea6fb3a273f3169c4ff62d5b1cec2fa5d20 (patch) | |
| tree | 1233027618cba1b84d3b8373ada1732c10751f80 /web/view | |
| parent | 0e8e605434b37251e6729121c77afa963cebef6a (diff) | |
| download | gn-guile-f2d53ea6fb3a273f3169c4ff62d5b1cec2fa5d20.tar.gz | |
Add the stripped branding webserver for aging.genenetwork.org
web/webserver-aging.scm serves only the brand pages (home/aging/...), css, static images and doc rendering -- the REST API (web/webserver.scm) stays untouched for the full deployment. bin/gn-guile-webserver is the matching entry-point script (a plain guile script with an @GUILE@ shebang that package builds substitute, wrapped with their load paths). Both are used by the gn-guile system container (gn-machines/genenetwork/containers/gn-guile-container.scm), which strips everything but the webserver from the package at build time: the container serves ONLY aging.genenetwork.org and every REST/API route is disabled. Also compute the copyright year at run time: (current-year) in (web sxml) returns (date-year (current-date)) and the aging/msk footers render "Copyright © 2005-<current-year>" instead of the stale hard-coded 2025.
Diffstat (limited to 'web/view')
| -rw-r--r-- | web/view/brand/aging.scm | 2 | ||||
| -rw-r--r-- | web/view/brand/msk.scm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/view/brand/aging.scm b/web/view/brand/aging.scm index f1c48c9..b520b8e 100644 --- a/web/view/brand/aging.scm +++ b/web/view/brand/aging.scm @@ -52,7 +52,7 @@ ,info) (footer (hr) - (p "Copyright © 2005-2025 " + (p (string-append "Copyright © 2005-" (number->string (current-year)) " ") (a (@ (href "https://genenetwork.org/")) "GeneNetwork Webservices") " | GeneNetwork and this website runs fully on free software. See status and download the " (a (@ (href "https://ci.genenetwork.org/")) "source code") "."))) diff --git a/web/view/brand/msk.scm b/web/view/brand/msk.scm index 4cbcec4..6556cd1 100644 --- a/web/view/brand/msk.scm +++ b/web/view/brand/msk.scm @@ -51,7 +51,7 @@ (p ,info) (footer (hr) - (p "Copyright © 2005-2025 " + (p (string-append "Copyright © 2005-" (number->string (current-year)) " ") (a (@ (href "https://genenetwork.org/")) "GeneNetwork Webservices") " | GeneNetwork and this website runs fully on free software. See status and download the " (a (@ (href "https://ci.genenetwork.org/")) "source code") "."))) |
