summaryrefslogtreecommitdiff
path: root/app/helpers/icons_helper.rb
blob: 1688cfc40b1089315aac4b4db761b3a71672c7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module IconsHelper
  def boolean_to_icon(value)
    if value.to_s == "true"
      content_tag :i, nil, class: 'icon-ok cgreen'
    else
      content_tag :i, nil, class: 'icon-off clgray'
    end
  end

  def public_icon
    content_tag :i, nil, class: 'icon-globe cblue'
  end

  def internal_icon
    content_tag :i, nil, class: 'icon-shield camber'
  end

  def private_icon
    content_tag :i, nil, class: 'icon-lock cgreen'
  end
end