summaryrefslogtreecommitdiff
path: root/app/helpers/notifications_helper.rb
blob: 2f8e64c375f5ca86dbe481738354dea22b747adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module NotificationsHelper
  include IconsHelper

  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