summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authortechknowlogick <matti@mdranta.net>2019-02-06 11:17:58 -0500
committerGitHub <noreply@github.com>2019-02-06 11:17:58 -0500
commitad059fdbbcfcf20cc5e700e2fcef46c523b5ab96 (patch)
treee29d66a2805220dd9841d3ffa5e6181fcb58f67b /templates/admin
parent0c721fe016919e368e105142d45efcd4d477757b (diff)
downloadgitea-ad059fdbbcfcf20cc5e700e2fcef46c523b5ab96.tar.gz
gitea-ad059fdbbcfcf20cc5e700e2fcef46c523b5ab96.zip
Admin config page mailertype setting option update (#5973)
* Fix #5972
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/config.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index c3d76687f1..2d660117d5 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -184,12 +184,12 @@
{{if .MailerEnabled}}
<dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt>
<dd>{{.Mailer.Name}}</dd>
- {{if not .Mailer.UseSendmail}}
+ {{if eq .Mailer.MailerType "smtp"}}
<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>
<dd>{{.Mailer.Host}}</dd>
- {{else}}
+ {{else if eq .Mailer.MailerType "sendmail"}}
<dt>{{.i18n.Tr "admin.config.mailer_use_sendmail"}}</dt>
<dd><i class="fa fa-check-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.mailer_sendmail_path"}}</dt>