summaryrefslogtreecommitdiffhomepage
path: root/template/error.templ
blob: d2fed83bbfdc4026e66ad61b61cbb7634759bec9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package template

import (
	"net/http"
	"strconv"

	"git.thomasvoss.com/euro-cash.eu/lib"
)

templ Error(status int) {
	{{ p := ctx.Value("printer").(lib.Printer) }}
	<header>
		@navbar()
		<h1>{ strconv.Itoa(status) } { http.StatusText(status) }</h1>
	</header>
	<main>
		<p>
			{ 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.") }
		</p>
		<p>
			@templ.Raw(p.T("If this issue persists, don’t hesitate to contact @onetruemangoman on Discord or to email us at %s.", contactEmail))
		</p>
	</main>
}