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

14 lines
364 B
Ruby
Raw Normal View History

2013-03-27 13:04:29 -04:00
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
2013-03-27 13:04:29 -04:00
end