_notifications.html.haml 666 Bytes
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1 2
- return unless @membership

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
3
= form_tag profile_notifications_path, method: :put, remote: true, class: 'inline', id: 'notification-form' do
Douwe Maan's avatar
Douwe Maan committed
4 5 6 7
  = hidden_field_tag :notification_type, 'project'
  = hidden_field_tag :notification_id, @membership.id
  = hidden_field_tag :notification_level
  %span.dropdown
Andrey's avatar
Andrey committed
8
    %a.dropdown-new.btn.btn-new#notifications-button{href: '#', "data-toggle" => "dropdown"}
Douwe Maan's avatar
Douwe Maan committed
9 10 11 12 13 14
      = 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)