change templates
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / build-and-test (push) Failing after 2m49s

This commit is contained in:
Thomas Peetz
2026-10-25 04:05:11 +01:00
parent 05555a7750
commit 2889927416
15 changed files with 255 additions and 139 deletions
+6 -6
View File
@@ -1,13 +1,14 @@
package globals
import (
"github.com/gin-gonic/gin"
"fmt"
"github.com/gin-gonic/gin"
)
var (
Secret = []byte("secret")
Version = "0.4.0"
Version = "unset"
Commit = "unset"
Date = "unset"
)
@@ -16,11 +17,10 @@ const UserKey = "user"
func GetDefaultValues(user interface{}, message string) gin.H {
values := gin.H{
"title": "Kontor MediaFiles",
"version": Version,
"title": "Kontor",
"version": fmt.Sprintf("%s %s", Version, Commit),
"message": message,
"user": user,
"user": user,
}
return values
}