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

37 lines
2.3 KiB
Text
Raw Normal View History

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
2019-07-07 11:18:12 +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-07-07 11:18:12 +05:30
= _('Enable HTML emails')
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2019-07-07 11:18:12 +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'
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
2020-07-28 23:09:34 +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'
2018-12-13 13:39:08 +05:30
= _("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-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
= _('By default, GitLab sends emails to help guide users through the onboarding process.')
= f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }