bootstrap-helpers 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bootstrap-helpers"
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -237,11 +237,12 @@ module BootstrapHelpers
237
237
  @pane_contents = []
238
238
  end
239
239
 
240
- def pane title, &block
240
+ def pane(title, pane_id = nil, &block)
241
+ pane_id ||= "#{title.parameterize}_tab"
241
242
  css_class, @first = 'active', false if @first
242
- link = content_tag(:a, title, :'data-toggle' => 'tab', :href => "##{title.parameterize}_tab")
243
+ link = content_tag(:a, title, :'data-toggle' => 'tab', :href => "##{pane_id}")
243
244
  @pane_handles << content_tag(:li, link, :class => css_class)
244
- @pane_contents << (content_tag :div, :class => "tab-pane #{css_class}", :id => "#{title.parameterize}_tab" do
245
+ @pane_contents << (content_tag :div, :class => "tab-pane #{css_class}", :id => "#{pane_id}" do
245
246
  capture(&block)
246
247
  end)
247
248
  nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -88,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  segments:
90
90
  - 0
91
- hash: 870253676130293577
91
+ hash: -375104929622917397
92
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  none: false
94
94
  requirements: