|
|
@ -218,12 +218,7 @@ |
|
|
|
{{if .MailerEnabled}} |
|
|
|
{{if .MailerEnabled}} |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_name"}}</dt> |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_name"}}</dt> |
|
|
|
<dd>{{.Mailer.Name}}</dd> |
|
|
|
<dd>{{.Mailer.Name}}</dd> |
|
|
|
{{if eq .Mailer.MailerType "smtp"}} |
|
|
|
{{if eq .Mailer.Protocol "sendmail"}} |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_disable_helo"}}</dt> |
|
|
|
|
|
|
|
<dd>{{if .DisableHelo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_host"}}</dt> |
|
|
|
|
|
|
|
<dd>{{.Mailer.Host}}</dd> |
|
|
|
|
|
|
|
{{else if eq .Mailer.MailerType "sendmail"}} |
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_use_sendmail"}}</dt> |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_use_sendmail"}}</dt> |
|
|
|
<dd>{{svg "octicon-check"}}</dd> |
|
|
|
<dd>{{svg "octicon-check"}}</dd> |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_sendmail_path"}}</dt> |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_sendmail_path"}}</dt> |
|
|
@ -232,6 +227,18 @@ |
|
|
|
<dd>{{.Mailer.SendmailArgs}}</dd> |
|
|
|
<dd>{{.Mailer.SendmailArgs}}</dd> |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_sendmail_timeout"}}</dt> |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_sendmail_timeout"}}</dt> |
|
|
|
<dd>{{.Mailer.SendmailTimeout}} {{.locale.Tr "tool.raw_seconds"}}</dd> |
|
|
|
<dd>{{.Mailer.SendmailTimeout}} {{.locale.Tr "tool.raw_seconds"}}</dd> |
|
|
|
|
|
|
|
{{else if eq .Mailer.Protocol "dummy"}} |
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_use_dummy"}}</dt> |
|
|
|
|
|
|
|
<dd>{{svg "octicon-check"}}</dd> |
|
|
|
|
|
|
|
{{else}}{{/* SMTP family */}} |
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_protocol"}}</dt> |
|
|
|
|
|
|
|
<dd>{{.Mailer.Protocol}}</dd> |
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_enable_helo"}}</dt> |
|
|
|
|
|
|
|
<dd>{{if .Mailer.EnableHelo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_smtp_addr"}}</dt> |
|
|
|
|
|
|
|
<dd>{{.Mailer.SMTPAddr}}</dd> |
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_smtp_port"}}</dt> |
|
|
|
|
|
|
|
<dd>{{.Mailer.SMTPPort}}</dd> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_user"}}</dt> |
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_user"}}</dt> |
|
|
|
<dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd><br> |
|
|
|
<dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd><br> |
|
|
|