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: f92978218d6d6c9751bf5c8f8135d444504ba137bc772266d5d42703bea79d4b
4
- data.tar.gz: c2839c6545ccb380e79d62661f762060287fcd75cc5973c0c642ae70766122fe
3
+ metadata.gz: fe3218c1374cebe0a04e6308f8887799757c11c35cd3a35ca6fde8ccaa8fc9c4
4
+ data.tar.gz: d9b522e70d598652269940c0871ba574ddf90ce2e3ae214693d1d85eba92404c
5
5
  SHA512:
6
- metadata.gz: 79ceaa2df73103cf77ea54d3307f18a4b893bec14262cb339c8a513cc099657ac7e1fc63b6e920b55ceb5325bd75aea73c4f14a819afde62022faa69917f3cfb
7
- data.tar.gz: 4d0d29e7eade2d05f41f31104b2c2388d097fb467ed42e65f0932165394b310c3352e13d32107d84509cd4bf0871d9f61e49140a07bc9d8c93d6c483c336c1c4
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
@@ -8,4 +8,4 @@
8
8
  %p
9
9
  != block.description
10
10
  - if block.try :button
11
- = link_to block.button[:title], block.button[:link], class: 'btn btn-primary'
11
+ = block.button
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Landing
3
- VERSION = '1.5.2'
3
+ VERSION = '1.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-landing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: '1.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov