BigW Consortium Gitlab

icons_helper.rb 423 Bytes
Newer Older
1 2 3
module IconsHelper
  def boolean_to_icon(value)
    if value.to_s == "true"
4
      content_tag :i, nil, class: 'icon-circle cgreen'
5
    else
6
      content_tag :i, nil, class: 'icon-off clgray'
7 8 9 10
    end
  end

  def public_icon
11
    content_tag :i, nil, class: 'icon-globe'
12 13
  end

14
  def internal_icon
15
    content_tag :i, nil, class: 'icon-shield'
16 17
  end

18
  def private_icon
19
    content_tag :i, nil, class: 'icon-lock'
20 21
  end
end