Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
bootstrap-grid-system
Advanced tools
The Bootstrap Grid System gem is a small and very simple tag generator for Bootstrap gem.
Ruby 1.9+
Rails 4.0+
Twitter Bootstrap 3.0+
Add the gem to your Gemfile
gem 'bootstrap-grid-system'
Bundle install
$ bundle install
Use bootstrap_row
to wrap the content in a div block with "row" class
<%= bootstrap_row { "Example" } %>
This generates the following HTML:
<div class="row">Example</div>
To disable bootstrap row, use the :row_disabled
option
<%= bootstrap_row(row_disabled: true) { "Example" } %>
This generates the following HTML:
Example
Use bootstrap_col
to wrap the content in a div block with "col-md-12" class
<%= bootstrap_col { "Example" } %>
This generates the following HTML:
<div class="col-md-12">Example</div>
To change the default number of columns, use the :col
or :offset_col
options
<%= bootstrap_col(col: 2, offset_col: 4) { "Example" } %>
This generates the following HTML:
<div class="col-md-2 col-md-offset-4">Example</div>
To change the default grid class, use the :grid_system
option
<%= bootstrap_col(grid_system: :lg) { "Example" } %>
This generates the following HTML:
<div class="col-lg-12">Example</div>
To disable bootstrap column div, use the :col_disabled
option
<%= bootstrap_col(col_disabled: true) { "Example" } %>
This generates the following HTML:
Example
Use bootstrap_row_with_col
to wrap the content in a div block with "row" class and div with class "col-md-12" inside
<%= bootstrap_row_with_col { "Example" } %>
This generates the following HTML:
<div class="row">
<div class="col-md-12">Example</div>
</div>
To change the default number of columns, use the :col
or :offset_col
options
<%= bootstrap_row_with_col(col: 2, offset_col: 4) { "Example" } %>
This generates the following HTML:
<div class="row">
<div class="col-md-2 col-md-offset-4">Example</div>
</div>
To change the default grid class, use the :grid_system
option
<%= bootstrap_row_with_col(grid_system: :lg) { "Example" } %>
This generates the following HTML:
<div class="row">
<div class="col-lg-12">Example</div>
</div>
To disable bootstrap row, use the :row_disabled
option
<%= bootstrap_row_with_col(row_disabled: true) { "Example" } %>
This generates the following HTML:
<div class="col-md-12">Example</div>
To disable bootstrap column div, use the :col_disabled
option
<%= bootstrap_row_with_col(col_disabled: true) { "Example" } %>
This generates the following HTML:
<div class="row">Example</div>
Use :id
, :class
or other html options to add your value
<%= bootstrap_row_with_col(id: "foo", class: "bar") { "Example" } %>
This generates the following HTML:
<div class="row bar" id="foo">
<div class="col-md-12">Example</div>
</div>
This project rocks and uses MIT-LICENSE.
FAQs
Unknown package
We found that bootstrap-grid-system demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.