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

14 lines
436 B
Ruby
Raw Normal View History

2013-03-27 13:04:29 -04:00
module NotificationsHelper
def notification_icon(notification)
if notification.disabled?
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-volume-off ns-mute'
elsif notification.participating?
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-volume-down ns-part'
elsif notification.watch?
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-volume-up ns-watch'
else
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-circle-o ns-default'
end
end
2013-03-27 13:04:29 -04:00
end