all repos — elgit @ 3a8e212766605bcd04ac893360f126a9bba54f56

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
15
16
17
18
19
20
21
22
package templates

import (
	g "go.alanpearce.eu/gomponents"
	. "go.alanpearce.eu/gomponents/html"
)

func NotFoundPage(data PageData) g.Node {
	return Page(data, []g.Node{
		Main(
			H3(g.Text("404 — nothing like that here.")),
		),
	})
}

func ErrorPage(data PageData) g.Node {
	return Page(data, []g.Node{
		Main(
			H3(g.Text("500 — something broke!")),
		),
	})
}