tramway-landing 3.1.1.10 → 3.1.1.11

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: 6357cedad3d2422008f3d4e6bad426889c79ece0e777041fe34988f72536b757
4
- data.tar.gz: be5301c2c4dfc3e64ca2db13b6e8d4b3bf69f1e82388ad99f8139a48dc55968d
3
+ metadata.gz: 259d9429acccbee8e412ba037adf4381c0e4c172db64825b8fce1cc3d2b3656e
4
+ data.tar.gz: 18dfc48764721a6e6ce2758ccc3890998694d947fdbbbd81f0cda564b329b446
5
5
  SHA512:
6
- metadata.gz: 9caf4587006b41ca494e6af23b18bbd383213c99ac61a47a802c70f4e8483aaf03ed452998b4e27865d0b0e1e59b3e15d8f10311bc6e0f1615f4f39bf624014b
7
- data.tar.gz: 0dcc7a118571778183d033984de220038de36ba3808c7647652487cd2c6963c6572e54dedda32d10922a970fd38c52b60c57a9cfbaf1db5821fec33ff81912eb
6
+ metadata.gz: 1f651258e6e670687fa85e0d43d3d951a4f2f8a857394f907823e60926fbcf957e6213d3488a6b68ced67a0e3ea0a42385f4aa0a25bc235b0eb4a124a5366459
7
+ data.tar.gz: 7253ae02f50de70c4e0eef25a29022432af5ebd66eef3223e3e59cd650d3a8aa30d0227ab5cd718f5e31a81364aaa0ac8adb31492e869f7ad92cbed00d8dd93a
@@ -20,18 +20,22 @@ module Tramway
20
20
  else
21
21
  if block.page.page_type.main?
22
22
  content_for?(:application_name) && content_for(:application_name).present? ? content_for(:application_name) : @application.public_name
23
+ else
24
+ block.page.title
23
25
  end
24
26
  end
25
27
  end
26
28
 
27
29
  def block_tagline(block)
28
- unless block.is_a? Array
30
+ if block.is_a? Array
31
+ block.each do |_current_block|
32
+ raw _current_block.page.body
33
+ end
34
+ else
29
35
  if block.page.page_type.main?
30
36
  content_for?(:application_tagline) && content_for(:application_tagline).present? ? content_for(:application_tagline) : @application.tagline
31
37
  else
32
- block.each do |_current_block|
33
- raw block.page.body
34
- end
38
+ raw block.page.body
35
39
  end
36
40
  end
37
41
  end
@@ -1,5 +1,9 @@
1
1
  .row.page{ id: block.anchor }
2
2
  .col-md-7
3
- = image_tag block.background.url, class: 'img-fluid'
3
+ - if block.background.present?
4
+ - background_url = block.background.is_a?(String) ? block.background : block.background.url
5
+ = image_tag background_url, class: 'img-fluid'
6
+ - else
7
+ - raise "Block background should valid image URL or PhotoUploader object. Block: #{block}"
4
8
  .col-md-5{ style: 'text-align: justify' }
5
9
  = render 'tramway/landing/templates/text', block: block
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '3.1.1.10'
5
+ VERSION = '3.1.1.11'
6
6
  end
7
7
  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: 3.1.1.10
4
+ version: 3.1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - moshinaan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email: