mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-25 01:26:40 +00:00
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 <me@xeiaso.net>
This commit is contained in:
+9
-8
@@ -123,6 +123,7 @@ templ index() {
|
||||
>JShelter</a> will disable. Please disable JShelter or other such
|
||||
plugins for this domain.
|
||||
</p>
|
||||
<p>This website is running Anubis version <code>{ anubis.Version }</code>.</p>
|
||||
</details>
|
||||
<noscript>
|
||||
<p>
|
||||
@@ -154,15 +155,15 @@ templ errorPage(message string, mail string) {
|
||||
}
|
||||
|
||||
templ StaticHappy() {
|
||||
<div class="centered-div">
|
||||
<img
|
||||
style="display:none;"
|
||||
style="width:100%;max-width:256px;"
|
||||
src={ "/.within.website/x/cmd/anubis/static/img/happy.webp?cacheBuster=" +
|
||||
<div class="centered-div">
|
||||
<img
|
||||
style="display:none;"
|
||||
style="width:100%;max-width:256px;"
|
||||
src={ "/.within.website/x/cmd/anubis/static/img/happy.webp?cacheBuster=" +
|
||||
anubis.Version }
|
||||
/>
|
||||
<p>This is just a check endpoint for your reverse proxy to use.</p>
|
||||
</div>
|
||||
/>
|
||||
<p>This is just a check endpoint for your reverse proxy to use.</p>
|
||||
</div>
|
||||
}
|
||||
|
||||
templ bench() {
|
||||
|
||||
Reference in New Issue
Block a user