summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
blob: f771fe761efc19e9adb674845c2a2b3fe7edbf1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module NotificationsHelper
  def notification_icon(notification)
    if notification.disabled?
      icon('volume-off', class: 'ns-mute')
    elsif notification.participating?
      icon('volume-down', class: 'ns-part')
    elsif notification.watch?
      icon('volume-up', class: 'ns-watch')
    else
      icon('circle-o', class: 'ns-default')
    end
  end
end