feat: add git version on admin panel. (#921)
This commit is contained in:
parent
091f063706
commit
5cc275b1de
7 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue