tramway-landing 1.8.1.1 → 1.8.1.2

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: 960b1900395fe32d4f852b98a4f4422061aa3dc96c3b4e2e58f101a305b49409
4
- data.tar.gz: 685673f79894feb98a5a4df039a858b579ca9707db17e71fcc631be3447d1282
3
+ metadata.gz: 8cf25a923207426595d36f0fa0cb878f030749a4a977c150f7acf3c2fba07cea
4
+ data.tar.gz: 04a46d33119f0112cab21d1ed94afad605ae372c4e068a3f9236294715050c8b
5
5
  SHA512:
6
- metadata.gz: 8e8acf2851295fd2866b931d76d94af04fdd9a586f1d0a0608dc46cb943924b2b738ad19741d0247d00d7cbbcf2893947514aa14c23e7c2ec82bf3f0ad76bd4a
7
- data.tar.gz: 8f2afe97bf62b59d5acaa0b684478429c0be5c9677911c2f3594df9496b4d3abec17a2c7ba68b261db080863cce6101d41e9d89d155380758b88e319f68257e5
6
+ metadata.gz: cf4c8cdd0e65f3db33269338893ec65d448df04ea5ac15f8d38324711709ef10702596f73bd33e941fee451332be21267cf85eec952df133e81f7be380d324f5
7
+ data.tar.gz: b3456e259d47c7948e300e6f6ae6beeb33707b855c0481bbceb0576fe4fa983149b189f4f25e509504e2b4c1760db37aa9eb57cab4c75c09bfec35ac3241a5f4
data/README.md CHANGED
@@ -50,9 +50,19 @@ Then create your main page controller `rails g controller web/welcome`
50
50
  *app/controllers/web/welcome_controller.rb*
51
51
  ```ruby
52
52
  class Web::WelcomeController < ApplicationController
53
+ before_action :application
54
+
55
+ layout 'tramway/landing/application'
56
+
53
57
  def index
54
58
  @blocks = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.on_main_page
55
59
  end
60
+
61
+ private
62
+
63
+ def application
64
+ @application = ::Tramway::Core.application_object
65
+ end
56
66
  end
57
67
  ```
58
68
 
@@ -97,6 +107,22 @@ root to: 'web/welcome#index'
97
107
 
98
108
  Then all your showing blocks will be on the main page.
99
109
 
110
+ ## Blocks
111
+
112
+ How create blocks you can find here
113
+
114
+ * [Header](https://github.com/ulmic/tramway-dev/blob/develop/tramway-landing/docs/header/main.md)
115
+ * Footer
116
+ * Block with text and image
117
+ * Block with text, image and button
118
+ * Cards
119
+ * Features list
120
+ * Contacts
121
+ * News
122
+ * Block with text and button
123
+ * View
124
+ * Just text
125
+
100
126
  ## Contributing
101
127
  Contribution directions go here.
102
128
 
@@ -25,7 +25,8 @@ class Tramway::Landing::BlockForm < ::Tramway::Core::ExtendedApplicationForm
25
25
  anchor: :string,
26
26
  description: :ckeditor,
27
27
  button_title: :string,
28
- button_link: :string
28
+ button_link: :string,
29
+ view_name: :string
29
30
  end
30
31
  end
31
32
 
@@ -4,7 +4,7 @@ module Tramway
4
4
  module Landing
5
5
  module ApplicationHelper
6
6
  include Tramway::Admin::RussianCasesHelper
7
- include Tramway::Profiles::LinksHelper
7
+ include Tramway::Profiles::LinksHelper if defined?(::Tramway::Profiles)
8
8
  end
9
9
  end
10
10
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '1.8.1.1'
5
+ VERSION = '1.8.1.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: 1.8.1.1
4
+ version: 1.8.1.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-05 00:00:00.000000000 Z
11
+ date: 2020-01-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email:
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.1.2
98
+ rubygems_version: 3.0.3
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Landing Engine for your Rails projects