File: _email_settings.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 (22 lines) | stat: -rw-r--r-- 1,707 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
%h5= _('Email notifications')

.form-group.gl-mb-3
  = f.gitlab_ui_checkbox_component :emails_enabled,
      s_('GroupSettings|Enable email notifications'),
      checkbox_options: { checked: @group.emails_enabled?, disabled: !can_disable_group_emails?(@group) },
      help_text: s_('GroupSettings|Enable sending email notifications for this group and all its subgroups and projects')
  .gl-px-7
    = f.gitlab_ui_checkbox_component :show_diff_preview_in_email,
        s_('GroupSettings|Include diff previews'),
        checkbox_options: { checked: @group.show_diff_preview_in_email? & @group.emails_enabled?,
                          disabled: !@group.emails_enabled? || !can_set_group_diff_preview_in_email?(@group) },
        help_text: s_('GroupSettings|Emails are not encrypted. Concerned administrators may want to disable diff previews.')

- if Feature.enabled?(:pat_expiry_inherited_members_notification, @group.root_ancestor)
  - controlled_by_parent_group = !@group.can_modify_token_expiry_notify_inherited?
  .form-group
    = f.label :token_expiry_notify_inherited, _('Expiry notification emails about group and project access tokens within this group should be sent to:')
    = f.gitlab_ui_radio_component :token_expiry_notify_inherited, true, _('All direct and inherited members of the group or project'), radio_options: { disabled: controlled_by_parent_group }
    = f.gitlab_ui_radio_component :token_expiry_notify_inherited, false, _('Only direct members of the group or project'), radio_options: { disabled: controlled_by_parent_group }
    - if controlled_by_parent_group
      .form-text= _('A parent group has selected "Only direct members." It cannot be overridden by this group.')