Sha256: aade48a70be79d0a0e8795e0eb3b8f66b4ed8246f710f626552fec5b0a4958fc

Contents?: true

Size: 192 Bytes

Versions: 5

Compression:

Stored size: 192 Bytes

Contents

module IconHelper
  def icon(name, label = nil)
    markup = content_tag :i, nil, class: "fa fa-#{name.to_s.gsub('_', '-')}"
    label ? "#{markup} #{label}".html_safe : markup
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
udongo-1.0.3 app/helpers/icon_helper.rb
udongo-1.0.2 app/helpers/icon_helper.rb
udongo-1.0.1 app/helpers/icon_helper.rb
udongo-1.0.0 app/helpers/icon_helper.rb
udongo-0.1.0 app/helpers/icon_helper.rb