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