From 669eb4ba4b88c643529bbe0b810c6823f53395b7 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 30 May 2025 12:23:27 -0400 Subject: [PATCH] fix(web): show Anubis version number on challenge pages (#587) Closes #565 The page already had the version number embedded into it, but that was not printed to the page. This prints the version number set at compile time to the page. Signed-off-by: Xe Iaso --- docs/docs/CHANGELOG.md | 1 + web/index.templ | 17 +++--- web/index_templ.go | 135 ++++++++++++++++++++++------------------- 3 files changed, 84 insertions(+), 69 deletions(-) diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index cb61141..905f787 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Record if challenges were issued via the API or via embedded JSON in the challenge page HTML ([#531](https://github.com/TecharoHQ/anubis/issues/531)) - Ensure that clients that are shown a challenge support storing cookies +- Imprint the version number into challenge pages - Encode challenge pages with gzip level 1 - Add PowerPC 64 bit little-endian builds (`GOARCH=ppc64le`) - Add `check-spelling` for spell checking diff --git a/web/index.templ b/web/index.templ index 872c8b1..2886cd3 100644 --- a/web/index.templ +++ b/web/index.templ @@ -123,6 +123,7 @@ templ index() { >JShelter will disable. Please disable JShelter or other such plugins for this domain.

+

This website is running Anubis version { anubis.Version }.