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-06-03 11:49:50 +00:00
|
|
|
content_tag :i, nil, class: 'icon-volume-off ns-mute'
|
2013-07-31 14:05:22 +00:00
|
|
|
elsif notification.participating?
|
2014-06-03 11:49:50 +00:00
|
|
|
content_tag :i, nil, class: 'icon-volume-down ns-part'
|
2013-07-31 14:05:22 +00:00
|
|
|
elsif notification.watch?
|
2014-06-03 11:49:50 +00:00
|
|
|
content_tag :i, nil, class: 'icon-volume-up ns-watch'
|
2013-07-31 14:05:22 +00:00
|
|
|
else
|
2014-06-03 11:49:50 +00:00
|
|
|
content_tag :i, nil, class: 'icon-circle-blank ns-default'
|
2013-07-31 14:05:22 +00:00
|
|
|
end
|
|
|
|
end
|
2013-03-27 17:04:29 +00:00
|
|
|
end
|