2023-09-18 00:26:42 +01:00
|
|
|
{{ define "mainbody" }}
|
|
|
|
<div class="page404">
|
|
|
|
<div>
|
|
|
|
<h1>
|
|
|
|
404
|
|
|
|
</h1>
|
2023-09-21 15:38:02 +01:00
|
|
|
{{ if .NotFoundMessage }}
|
|
|
|
<h2>
|
|
|
|
{{ .NotFoundMessage }}
|
|
|
|
</h2>
|
|
|
|
{{ if .GoBackLink }}
|
|
|
|
<div class="description">
|
|
|
|
<a hx-get="{{ .GoBackLink }}" hx-headers='{"REQUEST-TYPE": "htmlfull"}' hx-push-url="true" hx-swap="outerHTML" hx-target=".app">
|
|
|
|
👈 Go back
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<h2>
|
|
|
|
Page Not found
|
|
|
|
</h2>
|
|
|
|
<div class="description">
|
|
|
|
The page you were looking for does not exist
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-09-18 00:26:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|