debian-mirror-gitlab/app/helpers/ci/icons_helper.rb

12 lines
250 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
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