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?
|
|
|
|
content_tag :i, nil, class: 'icon-circle cred'
|
|
|
|
elsif notification.participating?
|
|
|
|
content_tag :i, nil, class: 'icon-circle cblue'
|
|
|
|
elsif notification.watch?
|
|
|
|
content_tag :i, nil, class: 'icon-circle cgreen'
|
|
|
|
else
|
|
|
|
content_tag :i, nil, class: 'icon-circle-blank cblue'
|
|
|
|
end
|
|
|
|
end
|
2013-03-27 13:04:29 -04:00
|
|
|
end
|