From 96c201273e5680b9d46d13514ac632d75d29d85d Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 31 Dec 2016 18:58:54 +0800 Subject: [PATCH] resolved #517: fix admin ui data row missing --- templates/admin/config.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 66849cf54..f06edbcb9 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -88,15 +88,15 @@
{{.i18n.Tr "admin.config.db_type"}}
{{.DbCfg.Type}}
{{.i18n.Tr "admin.config.db_host"}}
-
{{.DbCfg.Host}}
+
{{if .DbCfg.Host}}{{.DbCfg.Host}}{{else}}-{{end}}
{{.i18n.Tr "admin.config.db_name"}}
-
{{.DbCfg.Name}}
+
{{if .DbCfg.Name}}{{.DbCfg.Name}}{{else}}-{{end}}
{{.i18n.Tr "admin.config.db_user"}}
-
{{.DbCfg.User}}
+
{{if .DbCfg.User}}{{.DbCfg.User}}{{else}}-{{end}}
{{.i18n.Tr "admin.config.db_ssl_mode"}}
-
{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}
+
{{.i18n.Tr "admin.config.db_ssl_mode_helper"}}
{{.i18n.Tr "admin.config.db_path"}}
-
{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}
+
{{if .DbCfg.Path}}{{.DbCfg.Path}}{{else}}-{{end}} {{.i18n.Tr "admin.config.db_path_helper"}}