diff options
| author | eerielili <lionel@les-miquelots.net> | 2025-04-07 21:44:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-07 19:44:00 +0000 |
| commit | acce3604a4ccaa13be2ecb148c919f33d4383d5e (patch) | |
| tree | e6b4d7377afa3dd172f69fd91b809226ca3b62c3 /web/index.templ | |
| parent | 0928c3c8307425834921e786e17181702e845eb6 (diff) | |
| download | anubis-acce3604a4ccaa13be2ecb148c919f33d4383d5e.tar.xz anubis-acce3604a4ccaa13be2ecb148c919f33d4383d5e.zip | |
Add variable WEBMASTER_EMAIL and if present, display it on error page (#235)
* Add variable WEBMASTER_EMAIL and if present, display it on error page
- Adresses issue https://github.com/TecharoHQ/anubis/issues/115
* web: regenerate templates
Signed-off-by: Xe Iaso <me@xeiaso.net>
* update docs
Signed-off-by: Xe Iaso <me@xeiaso.net>
---------
Signed-off-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'web/index.templ')
| -rw-r--r-- | web/index.templ | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/web/index.templ b/web/index.templ index 63048e2..01d12b6 100644 --- a/web/index.templ +++ b/web/index.templ @@ -129,7 +129,7 @@ templ index() { </div> } -templ errorPage(message string) { +templ errorPage(message string, mail string) { <div class="centered-div"> <img id="image" @@ -139,7 +139,13 @@ templ errorPage(message string) { /> <p>{ message }.</p> <button onClick="window.location.reload();">Try again</button> - <p><a href="/">Go home</a></p> + if mail != "" { + <p><a href="/">Go home</a> or if you believe you should not be blocked, please contact the webmaster at <a href={"mailto:" + templ.SafeURL(mail) }> + { mail }</a> + </p> + } else { + <p><a href="/">Go home</a></p> + } </div> } |
