|
218 | 218 | {{if .MailerEnabled}}
|
219 | 219 | <dt>{{.locale.Tr "admin.config.mailer_name"}}</dt>
|
220 | 220 | <dd>{{.Mailer.Name}}</dd>
|
221 |
| - {{if eq .Mailer.MailerType "smtp"}} |
222 |
| - <dt>{{.locale.Tr "admin.config.mailer_disable_helo"}}</dt> |
223 |
| - <dd>{{if .DisableHelo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
224 |
| - <dt>{{.locale.Tr "admin.config.mailer_host"}}</dt> |
225 |
| - <dd>{{.Mailer.Host}}</dd> |
226 |
| - {{else if eq .Mailer.MailerType "sendmail"}} |
| 221 | + {{if eq .Mailer.Protocol "sendmail"}} |
227 | 222 | <dt>{{.locale.Tr "admin.config.mailer_use_sendmail"}}</dt>
|
228 | 223 | <dd>{{svg "octicon-check"}}</dd>
|
229 | 224 | <dt>{{.locale.Tr "admin.config.mailer_sendmail_path"}}</dt>
|
|
232 | 227 | <dd>{{.Mailer.SendmailArgs}}</dd>
|
233 | 228 | <dt>{{.locale.Tr "admin.config.mailer_sendmail_timeout"}}</dt>
|
234 | 229 | <dd>{{.Mailer.SendmailTimeout}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
| 230 | + {{else if eq .Mailer.Protocol "dummy"}} |
| 231 | + <dt>{{.locale.Tr "admin.config.mailer_use_dummy"}}</dt> |
| 232 | + <dd>{{svg "octicon-check"}}</dd> |
| 233 | + {{else}}{{/* SMTP family */}} |
| 234 | + <dt>{{.locale.Tr "admin.config.mailer_protocol"}}</dt> |
| 235 | + <dd>{{.Mailer.Protocol}}</dd> |
| 236 | + <dt>{{.locale.Tr "admin.config.mailer_enable_helo"}}</dt> |
| 237 | + <dd>{{if .Mailer.EnableHelo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
| 238 | + <dt>{{.locale.Tr "admin.config.mailer_smtp_addr"}}</dt> |
| 239 | + <dd>{{.Mailer.SMTPAddr}}</dd> |
| 240 | + <dt>{{.locale.Tr "admin.config.mailer_smtp_port"}}</dt> |
| 241 | + <dd>{{.Mailer.SMTPPort}}</dd> |
235 | 242 | {{end}}
|
236 | 243 | <dt>{{.locale.Tr "admin.config.mailer_user"}}</dt>
|
237 | 244 | <dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd><br>
|
|
0 commit comments