2013-03-27 13:04:29 -04:00
|
|
|
module NotificationsHelper
|
2013-07-31 10:05:22 -04:00
|
|
|
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'
|
2013-07-31 10:05:22 -04:00
|
|
|
elsif notification.participating?
|
2014-10-01 18:21:29 -04:00
|
|
|
content_tag :i, nil, class: 'fa fa-volume-down ns-part'
|
2013-07-31 10:05:22 -04:00
|
|
|
elsif notification.watch?
|
2014-10-01 18:21:29 -04:00
|
|
|
content_tag :i, nil, class: 'fa fa-volume-up ns-watch'
|
2013-07-31 10:05:22 -04:00
|
|
|
else
|
2014-10-01 18:21:29 -04:00
|
|
|
content_tag :i, nil, class: 'fa fa-circle-o ns-default'
|
2013-07-31 10:05:22 -04:00
|
|
|
end
|
|
|
|
end
|
2013-03-27 13:04:29 -04:00
|
|
|
end
|