Display config file path on admin panel (#2030)

This commit is contained in:
Lunny Xiao 2017-06-22 21:21:56 +08:00 committed by Bo-Yi Wu
parent 32f1c41f28
commit 75b5be236a
3 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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>