2013-11-20 06:41:41 -05:00
|
|
|
module IconsHelper
|
|
|
|
def boolean_to_icon(value)
|
|
|
|
if value.to_s == "true"
|
2013-11-20 07:05:42 -05:00
|
|
|
content_tag :i, nil, class: 'icon-ok cgreen'
|
2013-11-20 06:41:41 -05:00
|
|
|
else
|
2013-11-20 07:05:42 -05:00
|
|
|
content_tag :i, nil, class: 'icon-off clgray'
|
2013-11-20 06:41:41 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def public_icon
|
|
|
|
content_tag :i, nil, class: 'icon-globe cblue'
|
|
|
|
end
|
|
|
|
|
2013-11-06 10:13:21 -05:00
|
|
|
def internal_icon
|
|
|
|
content_tag :i, nil, class: 'icon-shield camber'
|
|
|
|
end
|
|
|
|
|
2013-11-20 06:41:41 -05:00
|
|
|
def private_icon
|
|
|
|
content_tag :i, nil, class: 'icon-lock cgreen'
|
|
|
|
end
|
|
|
|
end
|