2015-09-14 21:33:24 -04:00
|
|
|
- if current_user and !@membership.nil?
|
2015-09-14 20:27:54 -04:00
|
|
|
= form_tag profile_notifications_path, method: :put, remote: true, class: 'inline-form', id: 'notification-form' do
|
|
|
|
= hidden_field_tag :notification_type, 'project'
|
2015-09-14 21:33:24 -04:00
|
|
|
= hidden_field_tag :notification_id, @membership.id
|
2015-09-14 20:27:54 -04:00
|
|
|
= hidden_field_tag :notification_level
|
|
|
|
%span.dropdown
|
2015-09-14 19:37:11 -04:00
|
|
|
%a.dropdown-toggle.btn.btn-new{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
= icon('bell')
|
|
|
|
Notifications
|
2015-09-14 21:50:13 -04:00
|
|
|
= icon('angle-down')
|
2015-09-14 20:27:54 -04:00
|
|
|
%ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
|
|
|
|
- Notification.notification_levels.each do |level|
|
2015-09-14 21:33:24 -04:00
|
|
|
= notification_list_item(level, @membership)
|