tramway-landing 1.5.2 → 1.6
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: fe3218c1374cebe0a04e6308f8887799757c11c35cd3a35ca6fde8ccaa8fc9c4
|
4
|
+
data.tar.gz: d9b522e70d598652269940c0871ba574ddf90ce2e3ae214693d1d85eba92404c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d06eb5d1cc52a822f60d1162b7dbc4c14b8239f974c1bebf9682626709c662b2e3679c4741119c1d17239135b4d3dbd6a06fedfe04cc1f5351054a1fdc4bca
|
7
|
+
data.tar.gz: 464efb547fe5bc036e8b925a225e03c91a46ea5e45e87bd2a2432e0688d62fc2cf0f656af773add8c7b408a7db75cf6163c5fc90930a8085cc31fbc7c5190e68
|
@@ -34,4 +34,12 @@ class Tramway::Landing::BlockDecorator < ::Tramway::Core::ApplicationDecorator
|
|
34
34
|
:secondary
|
35
35
|
end
|
36
36
|
end
|
37
|
+
|
38
|
+
def button
|
39
|
+
if object.button['title'].present? && object.button['link'].present?
|
40
|
+
content_tag :a, href: object.button['link'], target: '_blank', class: 'btn btn-primary' do
|
41
|
+
object.button['title']
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
37
45
|
end
|