diff options
author | Unknwon <u@gogs.io> | 2017-02-18 13:29:43 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-18 13:29:43 -0500 |
commit | 1083c0cd9afcdddbb0216b408841d4c45200093d (patch) | |
tree | 86f04c5678233b1d2434a4df21e668405bdcb475 /routers/admin/admin.go | |
parent | 7b8f086f72e014c13a1098c327f971afe926778a (diff) |
admin/config: display repository related settings (#3816)
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r-- | routers/admin/admin.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go index 15d71bbe..4ac0bd67 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -199,15 +199,16 @@ 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 - ctx.Data["ScriptType"] = setting.ScriptType ctx.Data["ReverseProxyAuthUser"] = setting.ReverseProxyAuthUser ctx.Data["SSH"] = setting.SSH + ctx.Data["RepoRootPath"] = setting.RepoRootPath + ctx.Data["ScriptType"] = setting.ScriptType + ctx.Data["Repository"] = setting.Repository + ctx.Data["Service"] = setting.Service ctx.Data["DbCfg"] = models.DbCfg ctx.Data["Webhook"] = setting.Webhook @@ -227,6 +228,7 @@ func Config(ctx *context.Context) { ctx.Data["DisableGravatar"] = setting.DisableGravatar ctx.Data["EnableFederatedAvatar"] = setting.EnableFederatedAvatar + ctx.Data["GitVersion"] = setting.Git.Version ctx.Data["Git"] = setting.Git type logger struct { |