all repos — searchix @ 1183108baa44fde88944e9207fb7763668c2b448

Search engine for NixOS, nix-darwin, home-manager and NUR users

internal/components/error.templ (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package components

import (
	"strconv"
)

templ Error(tdata TemplateData) {
	<p class="notice error">
		{ strconv.Itoa(tdata.Code) }
		{ tdata.Message }
	</p>
}

templ ErrorPage(tdata TemplateData) {
	@Page(tdata) {
		@Error(tdata)
	}
}