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

29 lines
1.8 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'
= 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-07-07 11:18:12 +05:30
= render_if_exists 'admin/application_settings/email_additional_text_setting', form: f
2019-12-04 20:38:33 +05:30
= f.submit _('Save changes'), class: "btn btn-success", data: { qa_selector: 'save_changes_button' }