BigW Consortium Gitlab
module NotificationsHelper
def notification_icon(notification) if notification.disabled?
content_tag :i, nil, class: 'icon-volume-off cred'
elsif notification.participating?
content_tag :i, nil, class: 'icon-volume-down cblue'
elsif notification.watch?
content_tag :i, nil, class: 'icon-volume-up cgreen'
else content_tag :i, nil, class: 'icon-circle-blank cblue' end end
end