all repos — elgit @ 3a8e212766605bcd04ac893360f126a9bba54f56

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

refactor: add Page suffix to page templates

Alan Pearce
commit

3a8e212766605bcd04ac893360f126a9bba54f56

parent

6a7024290eab538e85a9f68fe88864953926158e

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M templates/errors.gotemplates/errors.go
@@ -5,7 +5,7 @@ g "go.alanpearce.eu/gomponents"
. "go.alanpearce.eu/gomponents/html" ) -func NotFound(data PageData) g.Node { +func NotFoundPage(data PageData) g.Node { return Page(data, []g.Node{ Main( H3(g.Text("404 — nothing like that here.")),
@@ -13,7 +13,7 @@ ),
}) } -func ServerError(data PageData) g.Node { +func ErrorPage(data PageData) g.Node { return Page(data, []g.Node{ Main( H3(g.Text("500 — something broke!")),