2013-06-21 16:17:58 -04:00
|
|
|
%li
|
2014-10-01 18:21:29 -04:00
|
|
|
%span.notification.fa.fa-holder
|
2014-02-17 11:06:24 -05:00
|
|
|
- if notification.global?
|
|
|
|
= notification_icon(@notification)
|
|
|
|
- else
|
|
|
|
= notification_icon(notification)
|
2013-06-21 16:17:58 -04:00
|
|
|
|
2014-02-17 11:06:24 -05:00
|
|
|
%span.str-truncated
|
2014-09-14 12:32:51 -04:00
|
|
|
- if membership.kind_of? GroupMember
|
2014-02-17 11:06:24 -05:00
|
|
|
= link_to membership.group.name, membership.group
|
|
|
|
- else
|
|
|
|
= link_to_project(membership.project)
|
|
|
|
.pull-right
|
|
|
|
= form_tag profile_notifications_path, method: :put, remote: true, class: 'update-notifications' do
|
|
|
|
= hidden_field_tag :notification_type, type, id: dom_id(membership, 'notification_type')
|
|
|
|
= hidden_field_tag :notification_id, membership.id, id: dom_id(membership, 'notification_id')
|
|
|
|
= select_tag :notification_level, options_for_select(Notification.options_with_labels, notification.level), class: 'trigger-submit'
|