BigW Consortium Gitlab

notifications_helper.rb 424 Bytes
Newer Older
1
module NotificationsHelper
2 3
  def notification_icon(notification)
    if notification.disabled?
4
      content_tag :i, nil, class: 'icon-volume-off cred'
5
    elsif notification.participating?
6
      content_tag :i, nil, class: 'icon-volume-down cblue'
7
    elsif notification.watch?
8
      content_tag :i, nil, class: 'icon-volume-up cgreen'
9 10 11 12
    else
      content_tag :i, nil, class: 'icon-circle-blank cblue'
    end
  end
13
end