diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2016-12-31 10:40:14 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-31 10:40:14 -0200 |
commit | 1f077928811b79c59e11ec8bde25e6031784c5ec (patch) | |
tree | b01c1defa3cba480bc5b66dc5c67350a95158d27 | |
parent | 9ccc3698d5d0fb7555e545bc1cd618632bd8aa53 (diff) | |
parent | 96c201273e5680b9d46d13514ac632d75d29d85d (diff) | |
download | gitea-1f077928811b79c59e11ec8bde25e6031784c5ec.tar.gz gitea-1f077928811b79c59e11ec8bde25e6031784c5ec.zip |
Merge pull request #545 from lunny/lunny/fix_ui_data_row_missing
Partially fix #484: fix admin ui data row missing
-rw-r--r-- | templates/admin/config.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ <dt>{{.i18n.Tr "admin.config.db_type"}}</dt> <dd>{{.DbCfg.Type}}</dd> <dt>{{.i18n.Tr "admin.config.db_host"}}</dt> - <dd>{{.DbCfg.Host}}</dd> + <dd>{{if .DbCfg.Host}}{{.DbCfg.Host}}{{else}}-{{end}}</dd> <dt>{{.i18n.Tr "admin.config.db_name"}}</dt> - <dd>{{.DbCfg.Name}}</dd> + <dd>{{if .DbCfg.Name}}{{.DbCfg.Name}}{{else}}-{{end}}</dd> <dt>{{.i18n.Tr "admin.config.db_user"}}</dt> - <dd>{{.DbCfg.User}}</dd> + <dd>{{if .DbCfg.User}}{{.DbCfg.User}}{{else}}-{{end}}</dd> <dt>{{.i18n.Tr "admin.config.db_ssl_mode"}}</dt> - <dd>{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}</dd> + <dd><i class="fa fa{{if .DbCfg.SSLMode}}-check{{end}}-square-o"></i> {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}</dd> <dt>{{.i18n.Tr "admin.config.db_path"}}</dt> - <dd>{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd> + <dd>{{if .DbCfg.Path}}{{.DbCfg.Path}}{{else}}-{{end}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd> </dl> </div> |