2015-09-20 12:28:14 -04:00
|
|
|
- return unless @membership
|
|
|
|
|
|
|
|
= form_tag profile_notifications_path, method: :put, remote: true, class: 'inline-form', id: 'notification-form' do
|
|
|
|
= hidden_field_tag :notification_type, 'project'
|
|
|
|
= hidden_field_tag :notification_id, @membership.id
|
|
|
|
= hidden_field_tag :notification_level
|
|
|
|
%span.dropdown
|
2015-09-25 14:33:05 -04:00
|
|
|
%a.dropdown-new.btn.btn-new#notifications-button{href: '#', "data-toggle" => "dropdown"}
|
2015-09-20 12:28:14 -04:00
|
|
|
= 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)
|