gitlab-org--gitlab-foss/app/helpers/notifications_helper.rb

16 lines
387 B
Ruby
Raw Normal View History

2013-03-27 13:04:29 -04:00
module NotificationsHelper
2015-05-21 17:49:06 -04:00
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
2013-03-27 13:04:29 -04:00
end