twitter-bootstrap-components-rails 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/components/twitter/bootstrap/components/v3/media_object.rb +5 -0
- data/app/components/twitter/bootstrap/components/v3/thumbnail.rb +5 -0
- data/app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb +5 -0
- data/app/helpers/twitter/bootstrap/components/rails/v4/components_helper.rb +1 -1
- data/app/views/twitter/bootstrap/components/v3/_media_object.html.haml +1 -1
- data/app/views/twitter/bootstrap/components/v3/_thumbnail.html.haml +2 -2
- data/lib/twitter/bootstrap/components/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0085bccb28902a03e490cce44f3ea47c3bfc6a8b
|
|
4
|
+
data.tar.gz: f4ce56c35df79ce21c828a39c26c5cdf4cac9f01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f08646c4570d12c21468c35c17b7b65414b74f517eabb7f06c2fb5521eed24e6079d2fbebb7eff0934b3d70c244ec3f9f2b675746d239e1c7d4f3b6830a71501
|
|
7
|
+
data.tar.gz: a56172889aba09b539206e4fae240f2ab239dca3073f41bb61fc52f64ca7f73643b26a218dafbbfc820ab7adb3a5da8819f2bce7b0254410353f3badfbbe2731
|
|
@@ -11,12 +11,17 @@ module Twitter
|
|
|
11
11
|
context: context,
|
|
12
12
|
div_media_object_classes: div_media_object_classes,
|
|
13
13
|
div_container_classes: div_container_classes,
|
|
14
|
+
container_id: container_id,
|
|
14
15
|
image_options: image_options,
|
|
15
16
|
link_target: link_target,
|
|
16
17
|
horizontal_alignment: horizontal_alignment
|
|
17
18
|
}
|
|
18
19
|
end
|
|
19
20
|
|
|
21
|
+
def container_id
|
|
22
|
+
@options[:container_id]
|
|
23
|
+
end
|
|
24
|
+
|
|
20
25
|
def div_media_object_classes
|
|
21
26
|
["media-#{horizontal_alignment}", "media-#{vertical_alignment}"]
|
|
22
27
|
end
|
|
@@ -12,6 +12,7 @@ module Twitter
|
|
|
12
12
|
{
|
|
13
13
|
block_output: @block_output,
|
|
14
14
|
context: context,
|
|
15
|
+
container_id: container_id,
|
|
15
16
|
container_classes: container_classes,
|
|
16
17
|
image_options: image_options,
|
|
17
18
|
link_options: link_options
|
|
@@ -22,6 +23,10 @@ module Twitter
|
|
|
22
23
|
@options[:context]
|
|
23
24
|
end
|
|
24
25
|
|
|
26
|
+
def container_id
|
|
27
|
+
@options[:container_id]
|
|
28
|
+
end
|
|
29
|
+
|
|
25
30
|
def container_classes
|
|
26
31
|
@options[:container_classes] || DEFAULT_CONTAINER_CLASSES
|
|
27
32
|
end
|
|
@@ -31,6 +31,11 @@ module Twitter
|
|
|
31
31
|
def bootstrap_thumbnail(options = {}, &block)
|
|
32
32
|
Twitter::Bootstrap::Components::V3::Thumbnail.new(self, options, &block).perform
|
|
33
33
|
end
|
|
34
|
+
|
|
35
|
+
# add ons
|
|
36
|
+
def bootstrap_form_for(object, *args, &block)
|
|
37
|
+
simple_form_for(object, *args, &block)
|
|
38
|
+
end
|
|
34
39
|
end
|
|
35
40
|
end
|
|
36
41
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
- if block_output
|
|
2
|
-
%div{ class: container_classes }
|
|
2
|
+
%div{ class: container_classes, id: container_id }
|
|
3
3
|
.thumbnail
|
|
4
4
|
- if link_options[:href].present?
|
|
5
5
|
%a{ link_options }
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.caption
|
|
10
10
|
= block_output
|
|
11
11
|
- else
|
|
12
|
-
%div{ class: container_classes }
|
|
12
|
+
%div{ class: container_classes, id: container_id }
|
|
13
13
|
- if link_options[:href].present?
|
|
14
14
|
%a.thumbnail{ link_options }
|
|
15
15
|
%img{ image_options }/
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twitter-bootstrap-components-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roberto Vasquez Angel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
211
211
|
version: '0'
|
|
212
212
|
requirements: []
|
|
213
213
|
rubyforge_project:
|
|
214
|
-
rubygems_version: 2.
|
|
214
|
+
rubygems_version: 2.5.1
|
|
215
215
|
signing_key:
|
|
216
216
|
specification_version: 4
|
|
217
217
|
summary: Twitter Bootstrap Components for Rails.
|