summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-31 18:58:54 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-31 18:58:54 +0800
commit96c201273e5680b9d46d13514ac632d75d29d85d (patch)
tree9435eaf51299bccaafb56ca7bc65c782cde08c21 /templates/admin
parentde8b73dd9241375d78a08bb01910d2c820b5e481 (diff)
downloadgitea-96c201273e5680b9d46d13514ac632d75d29d85d.tar.gz
gitea-96c201273e5680b9d46d13514ac632d75d29d85d.zip
resolved #517: fix admin ui data row missing
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/config.tmpl10
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>