resource_renderer 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e71b554764f33add56213232ba2b82b0aee2494
|
4
|
+
data.tar.gz: 959dcd0dff1a0f96553e521aa4bf52ac064ed832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f759b439f35102d81fc3352dd0159a8097b0c6e5d05462e7737c48b4ba486fafcdd57782b94ed0d7dde3469ce337fbd71b5177c82c4a68ca724c8a46d033a8
|
7
|
+
data.tar.gz: 09bd534ca52329d09d167cda8f94db2687197431fd181259ec586c1cca0cd9eef0d3cdc4e5974520d7873aa35839e199dd4ae10e853f14526f6cd7eb95102c9b
|
@@ -1,12 +1,12 @@
|
|
1
1
|
class BootstrapThumbnailResourceRenderer < ResourceRenderer::ResourceRenderer::Base
|
2
2
|
def render(&block)
|
3
|
-
helper.content_tag(:div) do
|
3
|
+
helper.content_tag(:div, { :'data-target' => '#modal-gallery', :'data-toggle' => 'modal-gallery'}) do
|
4
4
|
block.call(self)
|
5
5
|
end
|
6
6
|
end
|
7
7
|
|
8
8
|
def thumbnail(attribute_name, options = {}, &block)
|
9
|
-
options
|
9
|
+
options.reverse_merge!(as: :thumbnail, image_tag_options: { class: 'thumbnail img-responsive' })
|
10
10
|
|
11
11
|
helper.content_tag(:div, class: 'col-xs-12 col-sm-6 col-md-4 col-lg-2') do
|
12
12
|
display(attribute_name, options, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resource_renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
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: 2016-02-
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -239,4 +239,3 @@ signing_key:
|
|
239
239
|
specification_version: 4
|
240
240
|
summary: A simple way to render resources.
|
241
241
|
test_files: []
|
242
|
-
has_rdoc:
|