BigW Consortium Gitlab

notifications_helper.rb 387 Bytes
Newer Older
1
module NotificationsHelper
2 3
  include IconsHelper

4 5
  def notification_icon(notification)
    if notification.disabled?
6
      icon('volume-off', class: 'ns-mute')
7
    elsif notification.participating?
8
      icon('volume-down', class: 'ns-part')
9
    elsif notification.watch?
10
      icon('volume-up', class: 'ns-watch')
11
    else
12
      icon('circle-o', class: 'ns-default')
13 14
    end
  end
15
end