diff options
author | Unknwon <u@gogs.io> | 2017-02-28 12:42:16 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-28 12:42:16 -0500 |
commit | dd649eb4cc8dc6f1edc7168607bddb9dd6dde0be (patch) | |
tree | a87fc48478060fd061ad05599141871bdd4befed /templates/admin | |
parent | d43f5f17fd1e07230ade010116acabdc2dde27b6 (diff) |
admin: fix template error
Also a try to display key-value pairs in table.
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index b733b3b1..dbe0aa01 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -170,7 +170,7 @@ <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd> {{if .MailerEnabled}} <dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt> - <dd>{{.Mailer.Name}}</dd> + <dd>{{.Mailer.Subject}}</dd> <dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt> <dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt> @@ -275,15 +275,19 @@ <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.log_config"}} </h4> - <div class="ui attached table segment"> - <dl class="dl-horizontal admin-dl-horizontal"> + <div class="ui attached segment"> + <table class="ui very basic table"> {{range .Loggers}} - <dt>{{$.i18n.Tr "admin.config.log_mode"}}</dt> - <dd>{{.Mode}}</dd> - <dt>{{$.i18n.Tr "admin.config.log_config"}}</dt> - <dd><pre><code>{{.Config}}</code></pre></dd> + <tr> + <td>{{$.i18n.Tr "admin.config.log_mode"}}</td> + <td>{{.Mode}}</td> + <tr> + </tr> + <td>{{$.i18n.Tr "admin.config.log_options"}}</td> + <td><pre><code>{{.Config}}</code></pre></td> + </tr> {{end}} - </dl> + </table> </div> </div> </div> |