summaryrefslogtreecommitdiff
path: root/app/views/profiles/notifications/_project_settings.html.haml
blob: 8cd552caa3d60eb1eef2b7032160d4c0f34caa30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- emails_disabled = project.emails_disabled?

%li.notification-list-item
  %span.notification.gl-mr-2
    = notification_icon(notification_icon_level(setting, emails_disabled))

  %span.str-truncated
    = link_to_project(project)

  .float-right
    - if Feature.enabled?(:vue_notification_dropdown, default_enabled: :yaml)
      - if setting
        .js-vue-notification-dropdown{ data: { disabled: emails_disabled, dropdown_items: notification_dropdown_items(setting).to_json, notification_level: setting.level, project_id: project.id, container_class: 'gl-mr-3', show_label: "true" } }
    - else
      = render 'shared/notifications/button', notification_setting: setting, emails_disabled: emails_disabled