feat: add git version on admin panel. (#921)

This commit is contained in:
Bo-Yi Wu 2017-02-13 19:49:42 +08:00 committed by Lunny Xiao
parent 091f063706
commit 5cc275b1de
7 changed files with 14 additions and 3 deletions

View file

@ -200,6 +200,7 @@ func Config(ctx *context.Context) {
ctx.Data["DisableRouterLog"] = setting.DisableRouterLog
ctx.Data["RunUser"] = setting.RunUser
ctx.Data["RunMode"] = strings.Title(macaron.Env)
ctx.Data["GitVersion"] = setting.Git.Version
ctx.Data["RepoRootPath"] = setting.RepoRootPath
ctx.Data["StaticRootPath"] = setting.StaticRootPath
ctx.Data["LogRootPath"] = setting.LogRootPath