1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-28 03:50:10 +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>
<html lang="en">
<html lang="en" class="{{ .cssClass }}">
<head>
<title>404 - jfa-go</title>
<link rel="stylesheet" type="text/css" href="{{ .cssFile }}">
<link rel="stylesheet" type="text/css" href="css/base.css">
{{ template "header.html" . }}
<style>
.messageBox {
margin: 20%;
}
</style>
<title>404 - jfa-go</title>
</head>
<body>
<div class="messageBox">
<h1>Page not found.</h1>
<p>
<body class="section">
<div class="page-container">
<h1 class="heading">Page not found.</h1>
<p class="content">
{{ .contactMessage }}
</p>
</div>

View File

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

View File

@ -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(),
})
}