2015-10-24 18:46:33 +05:30
|
|
|
- case @membership
|
|
|
|
- when ProjectMember
|
|
|
|
= form_tag profile_notifications_path, method: :put, remote: true, class: 'inline', id: 'notification-form' do
|
|
|
|
= hidden_field_tag :notification_type, 'project'
|
|
|
|
= hidden_field_tag :notification_id, @membership.id
|
|
|
|
= hidden_field_tag :notification_level
|
|
|
|
%span.dropdown
|
|
|
|
%a.dropdown-new.btn.btn-new#notifications-button{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
= 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)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
- when GroupMember
|
|
|
|
.btn.btn-new.disabled.has_tooltip{title: "To change the notification level, you need to be a member of the project itself, not only its group."}
|
|
|
|
= icon('bell')
|
|
|
|
= notification_label(@membership)
|
|
|
|
= icon('angle-down')
|