summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
blob: bad380e98a8e5a95e27943726466bdf4e9ef0e35 (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: 'fa fa-volume-off ns-mute'
    elsif notification.participating?
      content_tag :i, nil, class: 'fa fa-volume-down ns-part'
    elsif notification.watch?
      content_tag :i, nil, class: 'fa fa-volume-up ns-watch'
    else
      content_tag :i, nil, class: 'fa fa-circle-o ns-default'
    end
  end
end