aboutsummaryrefslogtreecommitdiff
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r--routers/admin/admin.go8
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 {