From ea75f01ba2e8ba97d3ca101db3a844c76c49d737 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Wed, 19 Feb 2020 17:25:50 +0800 Subject: admin: show all version in dashboard And removed version info from footer. --- internal/template/template.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/template') 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 -- cgit v1.2.3