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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
2.3 KiB
Text
Raw Normal View History

2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-email-settings'), html: { class: 'fieldset-form' } do |f|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2018-05-09 12:01:36 +05:30
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :email_author_in_body, _('Include author name in notification email body'), help_text: _("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
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :html_emails_enabled, _('Enable multipart emails'), help_text: _('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
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :in_product_marketing_emails_enabled, _('Enable in-product marketing emails'), help_text: _('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
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :user_deactivation_emails_enabled, _('Enable user deactivation emails'), help_text: _('Send emails to users upon account deactivation.')
2021-11-11 11:23:49 +05:30
2023-04-23 21:23:45 +05:30
- if Feature.enabled?(:deactivation_email_additional_text)
.form-group
= f.label :deactivation_email_additional_text, _('Additional text for deactivation email')
= f.text_area :deactivation_email_additional_text, class: 'form-control gl-form-input', rows: 4
.form-text.text-muted
= _('Text added to the body of user deactivation email messages. 1000 character limit.')
2022-11-25 23:54:43 +05:30
= f.submit _('Save changes'), pajamas_button: true, data: { qa_selector: 'save_changes_button' }