tramway-landing 1.3.4 → 1.3.5

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: aa2f5f63faf20242a86c0f9274aa94b4bdb2d0263f597d047cbb656bc273ddeb
4
- data.tar.gz: '008bb48b38368c996443c90d277a656e5f61acc6fc7c6c134d12e2d2d52ee83f'
3
+ metadata.gz: 91354b7831e8e8ddcf571541f8b96c32990d63726e1ac267683a5226959e7f1c
4
+ data.tar.gz: 7d06fdbd4c209a3d03cbc2b62bd9742765c7a88a9f9b08366c4db0c70b509a93
5
5
  SHA512:
6
- metadata.gz: 4aee2d0f6f9397389b9d0571c9706c772bffa5bfa133c17c9ffeb32a809f67427d13b1a7bd21c9e7f330ac1ae37bd6857519b4c4c7dc0df1bb8cc06693ea4a96
7
- data.tar.gz: e2c67a825997932662ff9cfe88e48f14ce994a41e74e149994efdd52f8d76991edb56eb6791fac1b316365040e393e9af78041d7adddb62ebdc36040abc74480
6
+ metadata.gz: cc09b4f910ebf1a1e505e1f9ea51910357f8c272f4889e6be62e7fdeb2523fd2248b5a38bf547a03e6e8b3d6210c8b786a9053f3391c3373d31b18f48813a858
7
+ data.tar.gz: be4321d710339a809c86b724020a413297c1d1783dc60d56572a53fb0a6df0d0c8767104b9603624c0a85b22839be45bd926fedecd84a7c74e061c0081e4269d
@@ -8,4 +8,6 @@ class Tramway::Landing::BlockTypes::FeaturesDecorator < ::Tramway::Core::Applica
8
8
  def text; end
9
9
 
10
10
  def anchor; end
11
+
12
+ def full_text; end
11
13
  end
@@ -9,16 +9,32 @@
9
9
  .col-md-8
10
10
  %p.grey-text
11
11
  = block.description
12
- - collection.each_slice 3 do |sub_collection|
13
- .row
14
- - sub_collection.each do |item|
15
- .col.col-sm-2.col-xl-4.col-lg-4.col-md-4.mb-1.auto{ class: (item.anchor.present? ? :link : ''), data: { href: item.anchor.present? ? "##{item.anchor}" : '' } }
16
- - if item.icon.present?
17
- = fa_icon item.icon, class: 'fa-4x blue-text'
18
- - else
19
- - image_css_class_name = defined?(options) ? options.dig(:image, :css, :class_name) : ''
20
- = image_tag item.image, class: image_css_class_name
21
- %h4.my-4
22
- = item.title
23
- %p.grey-text
24
- != item.text
12
+ .row
13
+ - if collection.count == 1
14
+ - item = collection.first
15
+ .col.col-sm-2.col-xl-4.col-lg-4.col-md-4.mb-1.auto{ class: (item.anchor.present? ? :link : ''), data: { href: item.anchor.present? ? "##{item.anchor}" : '' } }
16
+ - if item.icon.present?
17
+ = fa_icon item.icon, class: 'fa-4x blue-text'
18
+ - else
19
+ - image_css_class_name = defined?(options) ? options.dig(:image, :css, :class_name) : ''
20
+ = image_tag item.image, class: image_css_class_name
21
+ %h4.my-4
22
+ = item.title
23
+ %p.grey-text
24
+ != item.text
25
+ .col.col-sm-10.col-xl-8.col-lg-8.col-md-8.mb-1.auto{ class: (item.anchor.present? ? :link : ''), data: { href: item.anchor.present? ? "##{item.anchor}" : '' } }
26
+ %p.grey-text
27
+ != item.full_text
28
+ - else
29
+ - collection.each_slice 3 do |sub_collection|
30
+ - sub_collection.each do |item|
31
+ .col.col-sm-2.col-xl-4.col-lg-4.col-md-4.mb-1.auto{ class: (item.anchor.present? ? :link : ''), data: { href: item.anchor.present? ? "##{item.anchor}" : '' } }
32
+ - if item.icon.present?
33
+ = fa_icon item.icon, class: 'fa-4x blue-text'
34
+ - else
35
+ - image_css_class_name = defined?(options) ? options.dig(:image, :css, :class_name) : ''
36
+ = image_tag item.image, class: image_css_class_name
37
+ %h4.my-4
38
+ = item.title
39
+ %p.grey-text
40
+ != item.text
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Landing
3
- VERSION = '1.3.4'
3
+ VERSION = '1.3.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-landing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-15 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email: