Sha256: fcdb19965a6ad221690fabfef6dae795fa48283b8c2d0cf8481f628cb76c05e2

Contents?: true

Size: 291 Bytes

Versions: 19

Compression:

Stored size: 291 Bytes

Contents

module Headmin
  module BootstrapHelper
    def bootstrap_icon(icon, options = {})
      tag_name = options.extract!(:tag_name).fetch(:tag_name, :i)
      options[:class] = ["bi", "bi-#{icon}", options.dig(:class)].compact.join(" ")
      content_tag(tag_name, options) {}
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
headmin-0.6.3 app/helpers/headmin/bootstrap_helper.rb
headmin-0.6.2 app/helpers/headmin/bootstrap_helper.rb
headmin-0.6.1 app/helpers/headmin/bootstrap_helper.rb
headmin-0.6.0 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.9 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.8 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.7 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.6 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.5 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.4 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.3 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.2 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.1 app/helpers/headmin/bootstrap_helper.rb
headmin-0.5.0 app/helpers/headmin/bootstrap_helper.rb
headmin-0.4.2 app/helpers/headmin/bootstrap_helper.rb
headmin-0.4.1 app/helpers/headmin/bootstrap_helper.rb
headmin-0.4.0 app/helpers/headmin/bootstrap_helper.rb
headmin-0.3.4 app/helpers/headmin/bootstrap_helper.rb
headmin-0.3.3 app/helpers/headmin/bootstrap_helper.rb