2019-09-30 21:07:59 +05:30
= form_for @application_setting, url: preferences_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-07-07 11:18:12 +05:30
= _('Include author name in notification email body')
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-10-27 15:23:28 +05:30
= _("Include the name of the author of the issue, merge request or comment in the email body. By default, GitLab overrides the email sender's name. Some email servers don't support that option.")
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
2021-10-27 15:23:28 +05:30
= _('Enable multipart emails')
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-10-27 15:23:28 +05:30
= _('Send email in multipart format (HTML and plain text). Uncheck to send email messages in plain text only.')
2018-12-13 13:39:08 +05:30
.form-group
= f.label :commit_email_hostname, _('Custom hostname (for private commit emails)'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :commit_email_hostname, class: 'form-control gl-form-input'
2018-12-13 13:39:08 +05:30
.form-text.text-muted
2022-03-02 08:16:31 +05:30
- commit_email_hostname_docs_link = link_to _('Learn more'), help_page_path('user/admin_area/settings/email.md', anchor: 'custom-hostname-for-private-commit-emails'), target: '_blank', rel: 'noopener noreferrer'
2021-10-27 15:23:28 +05:30
= _("Hostname used in private commit emails. %{learn_more}").html_safe % { learn_more: commit_email_hostname_docs_link }
2018-05-09 12:01:36 +05:30
2019-07-07 11:18:12 +05:30
= render_if_exists 'admin/application_settings/email_additional_text_setting', form: f
2021-04-17 20:07:23 +05:30
.form-group
.form-check
= f.check_box :in_product_marketing_emails_enabled, class: 'form-check-input'
= f.label :in_product_marketing_emails_enabled, class: 'form-check-label' do
= _('Enable in-product marketing emails')
.form-text.text-muted
2021-10-27 15:23:28 +05:30
= _('Send emails to help guide new users through the onboarding process.')
2021-04-17 20:07:23 +05:30
2021-11-11 11:23:49 +05:30
.form-group
.form-check
= f.check_box :user_deactivation_emails_enabled, class: 'form-check-input'
= f.label :user_deactivation_emails_enabled, class: 'form-check-label' do
= _('Enable user deactivation emails')
.form-text.text-muted
= _('Send emails to users upon account deactivation.')
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }