gitlab-org--gitlab-foss/app/helpers/icons_helper.rb

22 lines
434 B
Ruby
Raw Normal View History

module IconsHelper
def boolean_to_icon(value)
if value.to_s == "true"
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-circle cgreen'
else
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-power-off clgray'
end
end
def public_icon
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-globe'
end
def internal_icon
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-shield'
end
def private_icon
2014-10-01 18:21:29 -04:00
content_tag :i, nil, class: 'fa fa-lock'
end
end