gitlab-org--gitlab-foss/app/helpers/notifications_helper.rb
2014-10-03 12:19:24 +02:00

13 lines
436 B
Ruby

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