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?
|
2015-01-28 03:32:48 -05:00
|
|
|
icon('volume-off', class: 'ns-mute')
|
2013-07-31 10:05:22 -04:00
|
|
|
elsif notification.participating?
|
2015-01-28 03:32:48 -05:00
|
|
|
icon('volume-down', class: 'ns-part')
|
2013-07-31 10:05:22 -04:00
|
|
|
elsif notification.watch?
|
2015-01-28 03:32:48 -05:00
|
|
|
icon('volume-up', class: 'ns-watch')
|
2013-07-31 10:05:22 -04:00
|
|
|
else
|
2015-01-28 03:32:48 -05:00
|
|
|
icon('circle-o', class: 'ns-default')
|
2013-07-31 10:05:22 -04:00
|
|
|
end
|
|
|
|
end
|
2013-03-27 13:04:29 -04:00
|
|
|
end
|