summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
blob: b2399bb6db10c5baafad265be4d4ba3245a70d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module NotificationsHelper
  def notification_icon(notification)
    if notification.disabled?
      content_tag :i, nil, class: 'icon-volume-off cred'
    elsif notification.participating?
      content_tag :i, nil, class: 'icon-volume-down cblue'
    elsif notification.watch?
      content_tag :i, nil, class: 'icon-volume-up cgreen'
    else
      content_tag :i, nil, class: 'icon-circle-blank cblue'
    end
  end
end