all repos — elgit @ 866813058ab588b1dc49cdca9f4501702ab88da9

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)),
		),
	})
}