BigW Consortium Gitlab

_notifications.html.haml 970 Bytes
Newer Older
1 2
- case @membership
- when ProjectMember
3
  = form_tag profile_notifications_path, method: :put, remote: true, class: 'inline', id: 'notification-form' do
4 5 6 7
    = hidden_field_tag :notification_type, 'project'
    = hidden_field_tag :notification_id, @membership.id
    = hidden_field_tag :notification_level
    %span.dropdown
8
      %a.dropdown-new.btn.notifications-btn#notifications-button{href: '#', "data-toggle" => "dropdown"}
9 10 11 12 13 14 15
        = icon('bell')
        = notification_label(@membership)
        = icon('angle-down')
      %ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
        - Notification.project_notification_levels.each do |level|
          = notification_list_item(level, @membership)

16
- when GroupMember
17
  .btn.disabled.notifications-btn.has_tooltip{title: "To change the notification level, you need to be a member of the project itself, not only its group."}
18
    = icon('bell')
19
    = notification_label(@membership)
20
    = icon('angle-down')