diff --git a/html/404.html b/html/404.html index 22593ad..171610a 100644 --- a/html/404.html +++ b/html/404.html @@ -1,19 +1,14 @@ - + - 404 - jfa-go - + {{ template "header.html" . }} - + 404 - jfa-go - -
-

Page not found.

-

+ +

+

Page not found.

+

{{ .contactMessage }}

diff --git a/html/invalidCode.html b/html/invalidCode.html index 99ed9e0..c14ad1a 100644 --- a/html/invalidCode.html +++ b/html/invalidCode.html @@ -1,20 +1,17 @@ - + - Invalid Code - jfa-go - + {{ template "header.html" . }} - + Invalid Code - jfa-go - -
-

Invalid Code.

-

The above code is either incorrect, or has expired.

-

{{ .contactMessage }}

+ +
+

Invalid invite code.

+

The code above was either incorrect, or has expired.

+

+ {{ .contactMessage }} +

diff --git a/views.go b/views.go index fd7e803..7575312 100644 --- a/views.go +++ b/views.go @@ -53,8 +53,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) { }) } else { gcHTML(gc, 404, "invalidCode.html", gin.H{ - "bs5": app.config.Section("ui").Key("bs5").MustBool(false), - "cssFile": app.cssClass, + "cssClass": app.cssClass, "contactMessage": app.config.Section("ui").Key("contact_message").String(), }) } @@ -62,8 +61,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) { func (app *appContext) NoRouteHandler(gc *gin.Context) { gcHTML(gc, 404, "404.html", gin.H{ - "bs5": app.config.Section("ui").Key("bs5").MustBool(false), - "cssFile": app.cssClass, + "cssClass": app.cssClass, "contactMessage": app.config.Section("ui").Key("contact_message").String(), }) }