bootstrap_actioncell 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,11 @@
|
|
1
1
|
- buttons.each do |b|
|
2
2
|
- b[:path] ||= "#"
|
3
|
-
- b[:options] ||= {
|
3
|
+
- b[:options] ||= {}
|
4
|
+
- b[:options][:class] = if b[:options][:class].present? then (["btn","btn-mini"] + b[:options][:class].split(" ")).join(" ") else "btn btn-mini"
|
4
5
|
- if b[:title].present?
|
5
|
-
- b[:options][:title]
|
6
|
-
- b[:options][:data]
|
6
|
+
- b[:options][:title] ||= b[:title]
|
7
|
+
- b[:options][:data] ||= {}
|
8
|
+
- b[:options][:data][:toggle] ||= "tooltip"
|
7
9
|
- b[:icon] ||= "question"
|
8
10
|
!= link_to b[:path], b[:options] do
|
9
11
|
%i{:class => "icon-#{b[:icon]}"}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_actioncell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
segments:
|
145
145
|
- 0
|
146
|
-
hash: -
|
146
|
+
hash: -2660334611862474532
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
149
|
requirements:
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
segments:
|
154
154
|
- 0
|
155
|
-
hash: -
|
155
|
+
hash: -2660334611862474532
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
158
|
rubygems_version: 1.8.25
|