gitlab-org--gitlab-foss/app/helpers/notifications_helper.rb
Dmitriy Zaporozhets 55ab7a2a95
Remove color-named css classes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-03 14:49:50 +03:00

13 lines
436 B
Ruby

module NotificationsHelper
def notification_icon(notification)
if notification.disabled?
content_tag :i, nil, class: 'icon-volume-off ns-mute'
elsif notification.participating?
content_tag :i, nil, class: 'icon-volume-down ns-part'
elsif notification.watch?
content_tag :i, nil, class: 'icon-volume-up ns-watch'
else
content_tag :i, nil, class: 'icon-circle-blank ns-default'
end
end
end