effective_bootstrap 0.8.0 → 0.8.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c8ff2ddc7846693eda910018d90b746abe50f7a617eea476edd16920672df78
|
4
|
+
data.tar.gz: 544986295a3ac4a9b05e5cdf70f17b766682c4f95c8ba9ac0a551ebfa8c07fef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee013e77368c0443632902e1a67870012d270e8d15fa4051aa9cf3e67d479b4f121e40a4b2b8aee389370bf183fcecdbc4dac0c79f8dae4c75b9c580d63d38ce
|
7
|
+
data.tar.gz: 363f67e6ac798acd14506af81b769d5e8d56fe130281719bd71743f1738193a615e943b7df7df7039446eb19cd2bc359e4b8776040a43279f39eb4c4b9e5829b
|
@@ -7,7 +7,7 @@ module Effective
|
|
7
7
|
EXCLUSIVE_CLASS_SUFFIXES = ['-primary', '-secondary', '-success', '-danger', '-warning', '-info', '-light', '-dark']
|
8
8
|
|
9
9
|
delegate :object, to: :@builder
|
10
|
-
delegate :capture, :content_tag, :link_to, :icon, :asset_path, to: :@template
|
10
|
+
delegate :capture, :content_tag, :image_tag, :link_to, :icon, :asset_path, to: :@template
|
11
11
|
|
12
12
|
# So this takes in the options for an entire form group.
|
13
13
|
def initialize(name, options, builder:, html_options: nil)
|
@@ -94,7 +94,7 @@ module Effective
|
|
94
94
|
content_tag(:div, class: 'card mb-3') do
|
95
95
|
if attachment.image?
|
96
96
|
content_tag(:div, class: 'card-body') do
|
97
|
-
|
97
|
+
image_tag(url, alt: attachment.filename.to_s, class: 'img-fluid') +
|
98
98
|
link_to(attachment.filename, url, class: 'card-link')
|
99
99
|
end
|
100
100
|
else
|