blob: be40f79e880ec04b676dcddc30f10d2f6a608931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module Ci
module IconsHelper
def boolean_to_icon(value)
if value.to_s == "true"
content_tag :i, nil, class: 'fa fa-circle cgreen'
else
content_tag :i, nil, class: 'fa fa-power-off clgray'
end
end
end
end
|