summaryrefslogtreecommitdiff
path: root/app/views/profiles/notifications/_settings.html.haml
blob: d0d044136f6f7ef07e57ecb797098aa4938ceebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%li.notification-list-item
  %span.notification.fa.fa-holder.append-right-5
    - if notification.global?
      = notification_icon(@notification)
    - else
      = notification_icon(notification)

  %span.str-truncated
    - if membership.kind_of? GroupMember
      = 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: 'form-control trigger-submit'