mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 23:05:39 +03:00
Show Sendmail settings on admin config page (#2782)
* Show Sendmail settings on admin config page * Remove unecessary if statement
This commit is contained in:
parent
6a107e57f6
commit
4d01ecaef3
2 changed files with 16 additions and 4 deletions
|
@ -1412,6 +1412,9 @@ config.mailer_disable_helo = Disable HELO
|
||||||
config.mailer_name = Name
|
config.mailer_name = Name
|
||||||
config.mailer_host = Host
|
config.mailer_host = Host
|
||||||
config.mailer_user = User
|
config.mailer_user = User
|
||||||
|
config.mailer_use_sendmail = Use Sendmail
|
||||||
|
config.mailer_sendmail_path = Sendmail Path
|
||||||
|
config.mailer_sendmail_args = Extra arguments to Sendmail
|
||||||
config.send_test_mail = Send Test Email
|
config.send_test_mail = Send Test Email
|
||||||
config.test_mail_failed = Failed to send test email to '%s': %v
|
config.test_mail_failed = Failed to send test email to '%s': %v
|
||||||
config.test_mail_sent = Test email has been sent to '%s'.
|
config.test_mail_sent = Test email has been sent to '%s'.
|
||||||
|
|
|
@ -170,10 +170,19 @@
|
||||||
{{if .MailerEnabled}}
|
{{if .MailerEnabled}}
|
||||||
<dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt>
|
||||||
<dd>{{.Mailer.Name}}</dd>
|
<dd>{{.Mailer.Name}}</dd>
|
||||||
<dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt>
|
{{if not .Mailer.UseSendmail}}
|
||||||
<dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd>
|
<dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt>
|
||||||
<dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt>
|
<dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd>
|
||||||
<dd>{{.Mailer.Host}}</dd>
|
<dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt>
|
||||||
|
<dd>{{.Mailer.Host}}</dd>
|
||||||
|
{{else}}
|
||||||
|
<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>
|
||||||
|
<dd>{{.Mailer.SendmailPath}}</dd>
|
||||||
|
<dt>{{.i18n.Tr "admin.config.mailer_sendmail_args"}}</dt>
|
||||||
|
<dd>{{.Mailer.SendmailArgs}}</dd>
|
||||||
|
{{end}}
|
||||||
<dt>{{.i18n.Tr "admin.config.mailer_user"}}</dt>
|
<dt>{{.i18n.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>
|
||||||
<form class="ui form" action="{{AppSubUrl}}/admin/config/test_mail" method="post">
|
<form class="ui form" action="{{AppSubUrl}}/admin/config/test_mail" method="post">
|
||||||
|
|
Loading…
Reference in a new issue