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 +1 -1
- data/bootstrap-helpers.gemspec +1 -1
- data/lib/bootstrap-helpers.rb +4 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/bootstrap-helpers.gemspec
CHANGED
data/lib/bootstrap-helpers.rb
CHANGED
@@ -237,11 +237,12 @@ module BootstrapHelpers
|
|
237
237
|
@pane_contents = []
|
238
238
|
end
|
239
239
|
|
240
|
-
def pane
|
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 => "##{
|
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 => "#{
|
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.
|
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:
|
91
|
+
hash: -375104929622917397
|
92
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
93
|
none: false
|
94
94
|
requirements:
|