diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-19 17:25:50 +0800 |
---|---|---|
committer | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-19 17:32:56 +0800 |
commit | ea75f01ba2e8ba97d3ca101db3a844c76c49d737 (patch) | |
tree | 5a724201264c73339d3c0813db25776220d0e8d9 /internal/template | |
parent | 3a2b2de8141b5843892e64f9c165c1d7afb3724a (diff) |
admin: show all version in dashboard
And removed version info from footer.
Diffstat (limited to 'internal/template')
-rw-r--r-- | internal/template/template.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/template/template.go b/internal/template/template.go index 8f9caaf2..808f4a9a 100644 --- a/internal/template/template.go +++ b/internal/template/template.go @@ -10,7 +10,6 @@ import ( "html/template" "mime" "path/filepath" - "runtime" "strings" "sync" "time" @@ -37,9 +36,6 @@ var ( func FuncMap() []template.FuncMap { funcMapOnce.Do(func() { funcMap = []template.FuncMap{map[string]interface{}{ - "GoVer": func() string { - return strings.Title(runtime.Version()) - }, "Year": func() int { return time.Now().Year() }, @@ -56,7 +52,7 @@ func FuncMap() []template.FuncMap { return setting.AppURL }, "AppVer": func() string { - return setting.AppVer + return setting.AppVersion }, "AppDomain": func() string { return setting.Domain |