From 729ab8006546460ebb865d7d8cdba7f6b3cce081 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 5 Jan 2017 08:49:32 +0800 Subject: [PATCH] resolved #517: fix admin ui data row missing (#580) --- 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"}}