Add credits

This commit is contained in:
2020-10-09 17:40:38 +02:00
parent e725c30cf8
commit 5ca46b9cbd
3 changed files with 10 additions and 3 deletions

View File

@@ -22,3 +22,9 @@ func UploadName(pool *pgxpool.Pool) gin.HandlerFunc {
c.Redirect(302, "/")
}
}
func Credits() gin.HandlerFunc {
return func(c *gin.Context) {
c.HTML(http.StatusAccepted, "credits.html", gin.H{"version":"1.0"})
}
}

View File

@@ -2,7 +2,7 @@
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Medien Sammlung - Credits</title>
<title>Trikotwaschliste - Credits</title>
<link rel="stylesheet" type="text/css" href="/static/semantic.min.css">
</head>
<body>
@@ -10,10 +10,10 @@
{{template "navbar"}}
<div class="ui text center aligned container">
<br>
<h1 class="">Medien Sammlung <small>Version: {{ .version }}</small></h1>
<h1 class="">Trikot Waschliste <small>Version: {{ .version }}</small></h1>
<br>
<h2>Entwickler: structix</h2>
<h2>Git Repository: <a href="https://git.schoffit.net/structix/cdsammlung.git">Gitea Link</a></h2>
<h2>Git Repository: <a href="https://git.schoffit.net/structix/trikotwaschliste">Gitea Link</a></h2>
</div>
</body>

View File

@@ -8,6 +8,7 @@ import (
func RoutesInit(router *gin.Engine, pool *pgxpool.Pool) {
router.GET("/", handler.MainPage(pool))
router.GET("/credits", handler.Credits())
router.POST("/uploadname", handler.UploadName(pool))
router.GET("/persons", handler.ShowPersonsList(pool))