diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 66849cf541..f06edbcb95 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"}}