Display config file path on admin panel (#2030)
This commit is contained in:
parent
32f1c41f28
commit
75b5be236a
3 changed files with 4 additions and 0 deletions
|
@ -1238,6 +1238,7 @@ config.server_config = Server Configuration
|
||||||
config.app_name = Application Name
|
config.app_name = Application Name
|
||||||
config.app_ver = Application Version
|
config.app_ver = Application Version
|
||||||
config.app_url = Application URL
|
config.app_url = Application URL
|
||||||
|
config.custom_conf = Configuration File Path
|
||||||
config.domain = Domain
|
config.domain = Domain
|
||||||
config.offline_mode = Offline Mode
|
config.offline_mode = Offline Mode
|
||||||
config.disable_router_log = Disable Router Log
|
config.disable_router_log = Disable Router Log
|
||||||
|
|
|
@ -198,6 +198,7 @@ func Config(ctx *context.Context) {
|
||||||
ctx.Data["PageIsAdmin"] = true
|
ctx.Data["PageIsAdmin"] = true
|
||||||
ctx.Data["PageIsAdminConfig"] = true
|
ctx.Data["PageIsAdminConfig"] = true
|
||||||
|
|
||||||
|
ctx.Data["CustomConf"] = setting.CustomConf
|
||||||
ctx.Data["AppUrl"] = setting.AppURL
|
ctx.Data["AppUrl"] = setting.AppURL
|
||||||
ctx.Data["Domain"] = setting.Domain
|
ctx.Data["Domain"] = setting.Domain
|
||||||
ctx.Data["OfflineMode"] = setting.OfflineMode
|
ctx.Data["OfflineMode"] = setting.OfflineMode
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
<dd>{{AppName}}</dd>
|
<dd>{{AppName}}</dd>
|
||||||
<dt>{{.i18n.Tr "admin.config.app_ver"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.app_ver"}}</dt>
|
||||||
<dd>{{AppVer}}{{AppBuiltWith}}</dd>
|
<dd>{{AppVer}}{{AppBuiltWith}}</dd>
|
||||||
|
<dt>{{.i18n.Tr "admin.config.custom_conf"}}</dt>
|
||||||
|
<dd>{{.CustomConf}}</dd>
|
||||||
<dt>{{.i18n.Tr "admin.config.app_url"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.app_url"}}</dt>
|
||||||
<dd>{{.AppUrl}}</dd>
|
<dd>{{.AppUrl}}</dd>
|
||||||
<dt>{{.i18n.Tr "admin.config.domain"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.domain"}}</dt>
|
||||||
|
|
Reference in a new issue