diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-02-13 19:49:42 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-13 19:49:42 +0800 |
commit | 5cc275b1defc56d54bec23d1a5740c3fadcff2b0 (patch) | |
tree | 77bbff1e221e5a3b60044ba4b33d55ba5a251d45 /routers/admin | |
parent | 091f0637060f62b5a94e9594b062f56919c2192c (diff) | |
download | gitea-5cc275b1defc56d54bec23d1a5740c3fadcff2b0.tar.gz gitea-5cc275b1defc56d54bec23d1a5740c3fadcff2b0.zip |
feat: add git version on admin panel. (#921)
Diffstat (limited to 'routers/admin')
-rw-r--r-- | routers/admin/admin.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go index 147982d9b6..7158a4ee91 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -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 |