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
|
2013-12-06 15:14:55 -05:00
|
|
|
content_tag :i, nil, class: 'icon-globe'
|
2013-11-20 06:41:41 -05:00
|
|
|
end
|
|
|
|
|
2013-11-06 10:13:21 -05:00
|
|
|
def internal_icon
|
2013-12-06 15:14:55 -05:00
|
|
|
content_tag :i, nil, class: 'icon-shield'
|
2013-11-06 10:13:21 -05:00
|
|
|
end
|
|
|
|
|
2013-11-20 06:41:41 -05:00
|
|
|
def private_icon
|
2013-12-06 15:14:55 -05:00
|
|
|
content_tag :i, nil, class: 'icon-lock'
|
2013-11-20 06:41:41 -05:00
|
|
|
end
|
|
|
|
end
|