Sha256: 4c533fc3b198ccf466a37490aca77db12e7bab0d78167c7791ac41f49e97bdb0
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
module FontAwesome module Less module Rails module ViewHelpers def icon(icon, text = nil, html_options = {}) text, html_options = nil, text if text.is_a?(Hash) content_class = "fa fa-#{icon}" content_class << " #{html_options[:class]}" if html_options.key?(:class) html_options[:class] = content_class html = content_tag(:i, nil, html_options) html << ' ' << text.to_s unless text.blank? html end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems