diff --git a/html/invalidCode.html b/html/invalidCode.html index cfc5ef8..15d02f5 100644 --- a/html/invalidCode.html +++ b/html/invalidCode.html @@ -1,7 +1,7 @@ - + {{ template "header.html" . }} Invalid Code - jfa-go diff --git a/views.go b/views.go index 5a20ae2..cf0a836 100644 --- a/views.go +++ b/views.go @@ -345,6 +345,7 @@ func (app *appContext) GetCaptcha(gc *gin.Context) { inv, ok := app.storage.GetInvitesKey(code) if !ok { gcHTML(gc, 404, "invalidCode.html", gin.H{ + "urlBase": app.getURLBase(gc), "cssClass": app.cssClass, "cssVersion": cssVersion, "contactMessage": app.config.Section("ui").Key("contact_message").String(), @@ -379,6 +380,7 @@ func (app *appContext) GenCaptcha(gc *gin.Context) { inv, ok := app.storage.GetInvitesKey(code) if !ok { gcHTML(gc, 404, "invalidCode.html", gin.H{ + "urlBase": app.getURLBase(gc), "cssClass": app.cssClass, "cssVersion": cssVersion, "contactMessage": app.config.Section("ui").Key("contact_message").String(), @@ -474,6 +476,7 @@ func (app *appContext) VerifyCaptcha(gc *gin.Context) { inv, ok := app.storage.GetInvitesKey(code) if !ok { gcHTML(gc, 404, "invalidCode.html", gin.H{ + "urlBase": app.getURLBase(gc), "cssClass": app.cssClass, "cssVersion": cssVersion, "contactMessage": app.config.Section("ui").Key("contact_message").String(), @@ -505,6 +508,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) { inv, ok := app.storage.GetInvitesKey(code) if !ok { gcHTML(gc, 404, "invalidCode.html", gin.H{ + "urlBase": app.getURLBase(gc), "cssClass": app.cssClass, "cssVersion": cssVersion, "contactMessage": app.config.Section("ui").Key("contact_message").String(), @@ -514,6 +518,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) { if key := gc.Query("key"); key != "" && app.config.Section("email_confirmation").Key("enabled").MustBool(false) { fail := func() { gcHTML(gc, 404, "404.html", gin.H{ + "urlBase": app.getURLBase(gc), "cssClass": app.cssClass, "cssVersion": cssVersion, "contactMessage": app.config.Section("ui").Key("contact_message").String(), @@ -561,7 +566,9 @@ func (app *appContext) InviteProxy(gc *gin.Context) { gc.Redirect(301, jfLink) } else { gcHTML(gc, http.StatusOK, "create-success.html", gin.H{ + "urlBase": app.getURLBase(gc), "cssClass": app.cssClass, + "cssVersion": cssVersion, "strings": app.storage.lang.User[lang].Strings, "successMessage": app.config.Section("ui").Key("success_message").String(), "contactMessage": app.config.Section("ui").Key("contact_message").String(), @@ -651,6 +658,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) { func (app *appContext) NoRouteHandler(gc *gin.Context) { app.pushResources(gc, OtherPage) gcHTML(gc, 404, "404.html", gin.H{ + "urlBase": app.getURLBase(gc), "cssClass": app.cssClass, "cssVersion": cssVersion, "contactMessage": app.config.Section("ui").Key("contact_message").String(),