Sha256: 0bcfff29d1846dabc8c5a7b9d6d28e724203b95141738cb7f48b0a3a736529d0

Contents?: true

Size: 347 Bytes

Versions: 12

Compression:

Stored size: 347 Bytes

Contents

module IconHelper
  # Takes an icon class from bootstrap see {bootstrap icons}[http://getbootstrap.com/components/#glyphicons-glyphs]
  # Just feed the method the name, except all the 'glyphicon glyphicon-' stuff
  #
  def bs_icon(icon)
    markup = content_tag :span, class: "glyphicon glyphicon-#{icon}" do "" end
    markup.html_safe
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bootstrap_toolbelt-0.1.00 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.11 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.10 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.9 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.8 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.7 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.6 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.5 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.4 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.3 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.2 app/helpers/icon_helper.rb
bootstrap_toolbelt-0.0.1 app/helpers/icon_helper.rb