all repos — elgit @ 5dd02b8ec94b6837c0c8b01a503ae52695febbdf

fork of legit: web frontend for git, written in go

templates/errors.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
package templates

import (
	g "alin.ovh/gomponents"
	. "alin.ovh/gomponents/html"
)

func ErrorPage(data PageData) g.Node {
	return Page(data, []g.Node{
		Main(
			H3(g.Textf("%d — %s", data.Error.Code, data.Error.Message)),
		),
	})
}