summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-06-22 21:21:56 +0800
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-22 08:21:56 -0500
commit75b5be236a556822e053d3858b2564876c3c0e79 (patch)
treeb2b4d1729903f2d3f4bc4123cc35fe1cfbd4da18
parent32f1c41f288a654fc8e5642a6681bf492710da3e (diff)
downloadgitea-75b5be236a556822e053d3858b2564876c3c0e79.tar.gz
gitea-75b5be236a556822e053d3858b2564876c3c0e79.zip
Display config file path on admin panel (#2030)
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--routers/admin/admin.go1
-rw-r--r--templates/admin/config.tmpl2
3 files changed, 4 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index c1aa44e8d7..8df828091d 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -1238,6 +1238,7 @@ config.server_config = Server Configuration
config.app_name = Application Name
config.app_ver = Application Version
config.app_url = Application URL
+config.custom_conf = Configuration File Path
config.domain = Domain
config.offline_mode = Offline Mode
config.disable_router_log = Disable Router Log
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index 8ae4504847..3ce194f2b2 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -198,6 +198,7 @@ func Config(ctx *context.Context) {
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminConfig"] = true
+ ctx.Data["CustomConf"] = setting.CustomConf
ctx.Data["AppUrl"] = setting.AppURL
ctx.Data["Domain"] = setting.Domain
ctx.Data["OfflineMode"] = setting.OfflineMode
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index 0fbd0befcf..f9038e1425 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -12,6 +12,8 @@
<dd>{{AppName}}</dd>
<dt>{{.i18n.Tr "admin.config.app_ver"}}</dt>
<dd>{{AppVer}}{{AppBuiltWith}}</dd>
+ <dt>{{.i18n.Tr "admin.config.custom_conf"}}</dt>
+ <dd>{{.CustomConf}}</dd>
<dt>{{.i18n.Tr "admin.config.app_url"}}</dt>
<dd>{{.AppUrl}}</dd>
<dt>{{.i18n.Tr "admin.config.domain"}}</dt>