tramway-landing 2.0.0.1 → 2.0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1365b75aff6d9a4a020b0899cb49bde29104fa568857681c13ec7b7d816cdce
4
- data.tar.gz: d99f0c5cf630d572258b2bb422ff52e8ada99a7255bb77782796c6108861fe18
3
+ metadata.gz: bfb78cf86f79da777ae105e6baee14263b3fb0db01cc7f3e8b2efb370b0a7004
4
+ data.tar.gz: 82b57028ea92c223ab1e2eb1b177706ee4a2cef2d0127f00a39ad172c78b2d1a
5
5
  SHA512:
6
- metadata.gz: 8be42846b2c5a5efd33bfcc92c2e125f2521fe28cbac0fe09ff0415b52fa3df22580099b6d0d81e62ac9acf2eff003a3e3b54161d5170325a5ec7a3bef017232
7
- data.tar.gz: a4b8b02404aa3d9c8ceaf3c6f84d1d093706aa1d9a6372f42ae8f1de54bdf84d8b63570ce345d8afb0e9e99ec7069a6d6b96ce2add5c6b06346e9f028bf3b26c
6
+ metadata.gz: eb181b1315f078d0b76edd7a6e1e80278ce1ec6dee34be7b472c440c66524e20f7ee9c8cf4fe939e38fe5a2d87b1a34ddbe1a2008b54e53c7e2bf73397f1b7bf
7
+ data.tar.gz: ca656ccf21d88ef05dac5c8ccdd3609dbcf70fa057656f772f95456775232ff4d16140543be607dfa2057508c69f5edfc5ce22cd98c912d633ff2376dc3e60b5
@@ -39,6 +39,13 @@ main.mt-5
39
39
  p
40
40
  margin-top: 15px
41
41
 
42
+ .row
43
+ margin-right: 0
44
+
45
+ footer
46
+ .row
47
+ margin-right: 0
48
+
42
49
  @media screen and (max-width: 800px)
43
50
  .row
44
51
  &.page
@@ -29,6 +29,10 @@ class Tramway::Landing::BlockDecorator < ::Tramway::Core::ApplicationDecorator
29
29
  object.human_view_state_name
30
30
  end
31
31
 
32
+ def link
33
+ "##{object.anchor}"
34
+ end
35
+
32
36
  def view_state_button_color(event)
33
37
  case event
34
38
  when :publish
@@ -0,0 +1,7 @@
1
+ class Tramway::Landing::BlockLinkDecorator < ::Tramway::Landing::LinkDecorator
2
+ delegate :title, to: :object
3
+
4
+ def link
5
+ "##{object.anchor}"
6
+ end
7
+ end
@@ -20,9 +20,9 @@
20
20
  - headers = @blocks.select { |block| block.model.block_type&.header? }
21
21
  - footers = @blocks.select { |block| block.model.block_type&.footer? }
22
22
  - other_blocks = @blocks - headers - footers
23
- -# FIXME
24
23
  - if headers.first.present?
25
24
  = render "tramway/landing/blocks/block_types/header", block: headers.first
25
+
26
26
  %main.mt-5
27
27
  .container
28
28
  - other_blocks.each_with_index do |block, index|
@@ -31,10 +31,10 @@
31
31
  %hr
32
32
  .container-fluid
33
33
  = yield
34
- - else
35
- .container-fluid
36
- = yield
37
- - if @blocks&.any?
34
+
38
35
  - footers = @blocks.select { |block| block.model.block_type&.footer? }
39
36
  - if footers.first.present?
40
37
  = render "tramway/landing/blocks/block_types/footer", block: footers.first
38
+ - else
39
+ .container-fluid
40
+ = yield
@@ -24,7 +24,7 @@
24
24
  .row
25
25
  - if defined?(::Tramway::Profiles)
26
26
  .col-lg-5.col-md-12
27
- - social_networks = @application.respond_to?(:social_networks) ? @application.social_networks : Tramway::Profiles::SocialNetwork.active
27
+ - social_networks = @application.respond_to?(:social_networks) ? @application.social_networks.active : Tramway::Profiles::SocialNetwork.active
28
28
  - social_networks.each do |profile|
29
29
  %ul.list-group
30
30
  %li.list-group-item
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '2.0.0.1'
5
+ VERSION = '2.0.0.2'
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: 2.0.0.1
4
+ version: 2.0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2020-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email:
@@ -30,6 +30,7 @@ files:
30
30
  - app/assets/stylesheets/tramway/landing/justified.css
31
31
  - app/controllers/tramway/landing/application_controller.rb
32
32
  - app/decorators/tramway/landing/block_decorator.rb
33
+ - app/decorators/tramway/landing/block_link_decorator.rb
33
34
  - app/decorators/tramway/landing/block_types/cards_decorator.rb
34
35
  - app/decorators/tramway/landing/block_types/features_decorator.rb
35
36
  - app/decorators/tramway/landing/link_decorator.rb