Sha256: c1f65c9cf1c2ae99c2488bbcbcd7a3a53f2e36e156303bef9ab6b407177ebdab

Contents?: true

Size: 571 Bytes

Versions: 16

Compression:

Stored size: 571 Bytes

Contents

module BootstrapVersionHelper

  def bootstrap_three?
    Bundler.environment.specs['bootstrap-sass'].first.version >= Gem::Version.new('3')
  end

  def bs2(if2)
    bs2or3(if2,'')
  end

  def bs3(if3)
    bs2or3('',if3)
  end

  def bs2or3(if2,if3)
    bootstrap_three? ? if3 : if2
  end

  def font_awesome_four?
    Bundler.environment.specs['font-awesome-rails'].first.version >= Gem::Version.new('4')
  end
  
  def fa3(if3)
    fa3or4(if3,'')
  end
  
  def fa4(if4)
    fa3or4('',if4)
  end
  
  def fa3or4(if3,if4)
    font_awesome_four? ? if4 : if3
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
browse-everything-0.10.5 app/helpers/bootstrap_version_helper.rb
browse-everything-0.10.4 app/helpers/bootstrap_version_helper.rb
browse-everything-0.10.3 app/helpers/bootstrap_version_helper.rb
browse-everything-0.10.2 app/helpers/bootstrap_version_helper.rb
browse-everything-0.10.1 app/helpers/bootstrap_version_helper.rb
browse-everything-0.10.0 app/helpers/bootstrap_version_helper.rb
browse-everything-0.9.1 app/helpers/bootstrap_version_helper.rb
browse-everything-0.9.0 app/helpers/bootstrap_version_helper.rb
browse-everything-0.8.4 app/helpers/bootstrap_version_helper.rb
browse-everything-0.8.3 app/helpers/bootstrap_version_helper.rb
browse-everything-0.8.2 app/helpers/bootstrap_version_helper.rb
browse-everything-0.8.1 app/helpers/bootstrap_version_helper.rb
browse-everything-0.8.0 app/helpers/bootstrap_version_helper.rb
browse-everything-0.7.1 app/helpers/bootstrap_version_helper.rb
browse-everything-0.7.0 app/helpers/bootstrap_version_helper.rb
browse-everything-0.6.3 app/helpers/bootstrap_version_helper.rb