From 71937c1079a77e0b38dae00662ab2041c3e28f77 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 12 Aug 2024 23:58:46 +0200 Subject: Add email support --- template/error.templ | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 template/error.templ (limited to 'template') diff --git a/template/error.templ b/template/error.templ new file mode 100644 index 0000000..d2fed83 --- /dev/null +++ b/template/error.templ @@ -0,0 +1,24 @@ +package template + +import ( + "net/http" + "strconv" + + "git.thomasvoss.com/euro-cash.eu/lib" +) + +templ Error(status int) { + {{ p := ctx.Value("printer").(lib.Printer) }} +
+ @navbar() +

{ strconv.Itoa(status) } { http.StatusText(status) }

+
+
+

+ { p.T("If you’re seeing this page, it means that something went wrong on our end that we need to fix. Our team has been notified of this error, and we apologise for the inconvenience.") } +

+

+ @templ.Raw(p.T("If this issue persists, don’t hesitate to contact @onetruemangoman on Discord or to email us at %s.", contactEmail)) +

+
+} -- cgit v1.2.3