Browse Source

Display config file path on admin panel (#2030)

for-closed-social
Lunny Xiao 7 years ago
committed by Bo-Yi Wu
parent
commit
75b5be236a
3 changed files with 4 additions and 0 deletions
  1. +1
    -0
      options/locale/locale_en-US.ini
  2. +1
    -0
      routers/admin/admin.go
  3. +2
    -0
      templates/admin/config.tmpl

+ 1
- 0
options/locale/locale_en-US.ini 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

+ 1
- 0
routers/admin/admin.go 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

+ 2
- 0
templates/admin/config.tmpl 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>

Loading…
Cancel
Save