File: _email.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (33 lines) | stat: -rw-r--r-- 2,622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
= gitlab_ui_form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-email-settings'), html: { class: 'fieldset-form' } do |f|
  = form_errors(@application_setting)

  %fieldset
    .form-group
      = 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.")
    .form-group
      = 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.')
    .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 gl-form-input'
      .form-text.gl-text-subtle
        - commit_email_hostname_docs_link = link_to _('Learn more'), help_page_path('administration/settings/email.md', anchor: 'custom-hostname-for-private-commit-emails'), target: '_blank', rel: 'noopener noreferrer'
        = _("Hostname used in private commit emails. %{learn_more}").html_safe % { learn_more: commit_email_hostname_docs_link }

    = render_if_exists 'admin/application_settings/email_additional_text_setting', form: f

    .form-group
      = f.gitlab_ui_checkbox_component :user_deactivation_emails_enabled, _('Enable user deactivation emails'), help_text: _('Send emails to users upon account deactivation.')

    .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.gl-text-subtle
        = _('Text added to the body of user deactivation email messages. 1000 character limit.')

    - if Feature.enabled?(:pat_expiry_inherited_members_notification, :instance)
      .form-group
        = f.label :resource_token_expiry_inherited_members, _('Expiry notification emails about group and project access tokens should be sent to:')
        = f.gitlab_ui_radio_component :resource_token_expiry_inherited_members, true, _('All direct and inherited members of the group or project')
        = f.gitlab_ui_radio_component :resource_token_expiry_inherited_members, false, _('Only direct members of the group or project')

  = f.submit _('Save changes'), pajamas_button: true, data: { testid: 'save-changes-button' }