summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
blob: ae3402b26171915c67718f0293fb749b69d9ff07 (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-circle cred'
    elsif notification.participating?
      content_tag :i, nil, class: 'icon-circle cblue'
    elsif notification.watch?
      content_tag :i, nil, class: 'icon-circle cgreen'
    else
      content_tag :i, nil, class: 'icon-circle-blank cblue'
    end
  end
end