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-02-17 11:06:24 -05:00
|
|
|
content_tag :i, nil, class: 'icon-volume-off cred'
|
2013-07-31 10:05:22 -04:00
|
|
|
elsif notification.participating?
|
2014-02-17 11:06:24 -05:00
|
|
|
content_tag :i, nil, class: 'icon-volume-down cblue'
|
2013-07-31 10:05:22 -04:00
|
|
|
elsif notification.watch?
|
2014-02-17 11:06:24 -05:00
|
|
|
content_tag :i, nil, class: 'icon-volume-up cgreen'
|
2013-07-31 10:05:22 -04:00
|
|
|
else
|
|
|
|
content_tag :i, nil, class: 'icon-circle-blank cblue'
|
|
|
|
end
|
|
|
|
end
|
2013-03-27 13:04:29 -04:00
|
|
|
end
|