1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-09-19 10:50:11 +00:00

remove bootstrap traces from invalid code/404 html

This commit is contained in:
Harvey Tindall 2021-01-04 22:50:48 +00:00
parent 2d7c9b1f7e
commit 219f4417cd
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
3 changed files with 19 additions and 29 deletions

View File

@ -1,19 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" class="{{ .cssClass }}">
<head> <head>
<title>404 - jfa-go</title> <link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="{{ .cssFile }}">
{{ template "header.html" . }} {{ template "header.html" . }}
<style> <title>404 - jfa-go</title>
.messageBox {
margin: 20%;
}
</style>
</head> </head>
<body> <body class="section">
<div class="messageBox"> <div class="page-container">
<h1>Page not found.</h1> <h1 class="heading">Page not found.</h1>
<p> <p class="content">
{{ .contactMessage }} {{ .contactMessage }}
</p> </p>
</div> </div>

View File

@ -1,20 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en" class="{{ .cssClass }}">
<head> <head>
<title>Invalid Code - jfa-go</title> <link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="{{ .cssFile }}">
{{ template "header.html" . }} {{ template "header.html" . }}
<style> <title>Invalid Code - jfa-go</title>
.messageBox {
margin: 20%;
}
</style>
</head> </head>
<body> <body class="section">
<div class="messageBox"> <div class="page-container">
<h1>Invalid Code.</h1> <h1 class="heading">Invalid invite code.</h1>
<p>The above code is either incorrect, or has expired.</p> <p class="content">The code above was either incorrect, or has expired.</p>
<p>{{ .contactMessage }}</p> <p class="content">
{{ .contactMessage }}
</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -53,8 +53,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
}) })
} else { } else {
gcHTML(gc, 404, "invalidCode.html", gin.H{ gcHTML(gc, 404, "invalidCode.html", gin.H{
"bs5": app.config.Section("ui").Key("bs5").MustBool(false), "cssClass": app.cssClass,
"cssFile": app.cssClass,
"contactMessage": app.config.Section("ui").Key("contact_message").String(), "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) { func (app *appContext) NoRouteHandler(gc *gin.Context) {
gcHTML(gc, 404, "404.html", gin.H{ gcHTML(gc, 404, "404.html", gin.H{
"bs5": app.config.Section("ui").Key("bs5").MustBool(false), "cssClass": app.cssClass,
"cssFile": app.cssClass,
"contactMessage": app.config.Section("ui").Key("contact_message").String(), "contactMessage": app.config.Section("ui").Key("contact_message").String(),
}) })
} }