Sha256: 8895a31305efa80e8656e28fbc598a8370b202bde5d5fc7e42cbbd4f72612b93
Contents?: true
Size: 1015 Bytes
Versions: 3
Compression:
Stored size: 1015 Bytes
Contents
gem_group :assets do gem 'twitter-bootstrap-rails' end after_bundler do generate "bootstrap:install" layout = config["twitter_bootstrap_layout"] generate "bootstrap:layout application #{layout} -f" html_to_find = layout == "fluid" ? '<div class="row-fluid">' : '<div class="content">' gsub_file "app/views/layouts/application.html.erb", /#{html_to_find}/, <<-HTML <% flash.each do |name, msg| %> <div class="alert alert-<%= name == :notice ? "success" : "error" %>"> <a class="close" data-dismiss="alert">×</a> <%= msg %> </div> <% end %> #{html_to_find} HTML end __END__ name: Twitter Bootstrap Rails description: Add Twitter Bootstrap CSS category: stylesheet exclusive: stylesheet tags: [css, stylesheet] requires: [simple_form, rails_basics] run_before: [simple_form] config: - twitter_bootstrap_layout: prompt: "Which Twitter Bootstrap layout?" type: multiple_choice choices: [["Fluid", "fluid"], ["Fixed", "fixed"]]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appscrolls-0.8.3 | scrolls/twitter_bootstrap.rb |
appscrolls-0.8.2 | scrolls/twitter_bootstrap.rb |
appscrolls-0.8.1 | scrolls/twitter_bootstrap.rb |