summaryrefslogtreecommitdiff
path: root/app/views/projects/buttons/_notifications.html.haml
blob: fb30868fc6be6c93217fc25be106c00e58e1cd81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- if current_user and !@membership_id.nil?
  %span.dropdown
    = form_tag profile_notifications_path, method: :put, remote: true do
      = hidden_field_tag :notification_type, 'project'
      = hidden_field_tag :notification_id, @membership_id
      %a.dropdown-toggle.btn.btn-new{href: '#', "data-toggle" => "dropdown"}
        = icon('bell')
        Notifications
        %ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
          - Notification.notification_levels.each do | level |
            = notification_list_item(level)