debian-mirror-gitlab/app/views/admin/application_settings/_email.html.haml

31 lines
1.7 KiB
Text
Raw Normal View History

2018-11-18 11:00:15 +05:30
= form_for @application_setting, url: admin_application_settings_path(anchor: 'js-email-settings'), html: { class: 'fieldset-form' } do |f|
2018-05-09 12:01:36 +05:30
= form_errors(@application_setting)
%fieldset
.form-group
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :email_author_in_body, class: 'form-check-input'
= f.label :email_author_in_body, class: 'form-check-label' do
2019-05-30 16:15:17 +05:30
Include author name in notification email body
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2019-05-30 16:15:17 +05:30
Some email servers do not support overriding the email sender name.
Enable this option to include the name of the author of the issue,
merge request or comment in the email body instead.
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :html_emails_enabled, class: 'form-check-input'
= f.label :html_emails_enabled, class: 'form-check-label' do
2019-05-30 16:15:17 +05:30
Enable HTML emails
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2019-05-30 16:15:17 +05:30
By default GitLab sends emails in HTML and plain text formats so mail
clients can choose what format to use. Disable this option if you only
want to send emails in plain text format.
2018-12-13 13:39:08 +05:30
.form-group
= f.label :commit_email_hostname, _('Custom hostname (for private commit emails)'), class: 'label-bold'
= f.text_field :commit_email_hostname, class: 'form-control'
.form-text.text-muted
- commit_email_hostname_docs_link = link_to _('Learn more'), help_page_path('user/admin_area/settings/email', anchor: 'custom-private-commit-email-hostname'), target: '_blank'
= _("This setting will update the hostname that is used to generate private commit emails. %{learn_more}").html_safe % { learn_more: commit_email_hostname_docs_link }
2018-05-09 12:01:36 +05:30
2019-05-30 16:15:17 +05:30
= f.submit 'Save changes', class: "btn btn-success"