all repos — elgit @ e70b90b4b86f672eb9ccf9a768e083edef73395e

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

de-duplicate error page

Alan Pearce
commit

e70b90b4b86f672eb9ccf9a768e083edef73395e

parent

cfea2a3ba078b13b46a99963953175f6d1c16ff1

1 file changed, 6 insertions(+), 0 deletions(-)

changed files
M templates/page.gotemplates/page.go
@@ -11,6 +11,11 @@ c "alin.ovh/gomponents/components"
. "alin.ovh/gomponents/html" ) +type Error struct { + Code int + Message string +} + type PageData struct { Meta config.Meta DisplayName string
@@ -32,6 +37,7 @@ Branches any
Log bool Servername string Gomod bool + Error *Error } func RenderHead(data PageData) []g.Node {