From 75b5be236a556822e053d3858b2564876c3c0e79 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 22 Jun 2017 21:21:56 +0800 Subject: [PATCH] Display config file path on admin panel (#2030) --- options/locale/locale_en-US.ini | 1 + routers/admin/admin.go | 1 + templates/admin/config.tmpl | 2 ++ 3 files changed, 4 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c1aa44e8d..8df828091 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 8ae450484..3ce194f2b 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 0fbd0befc..f9038e142 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -12,6 +12,8 @@
{{AppName}}
{{.i18n.Tr "admin.config.app_ver"}}
{{AppVer}}{{AppBuiltWith}}
+
{{.i18n.Tr "admin.config.custom_conf"}}
+
{{.CustomConf}}
{{.i18n.Tr "admin.config.app_url"}}
{{.AppUrl}}
{{.i18n.Tr "admin.config.domain"}}