Add credits
This commit is contained in:
@@ -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"})
|
||||
}
|
||||
}
|
||||
|
@@ -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>
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user