tramway-landing 3.1.1.1 → 3.1.1.6
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 +4 -4
- data/app/helpers/tramway/landing/application_helper.rb +15 -7
- data/app/views/layouts/tramway/landing/_navbar.html.haml +1 -1
- data/app/views/tramway/landing/blocks/block_types/_footer.html.haml +2 -2
- data/app/views/tramway/landing/blocks/block_types/_header_with_form.html.haml +4 -4
- data/config/locales/templates.yml +9 -0
- data/lib/tramway/landing/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 767b052086cbf7f477174d75bda91e73dfeb5337e493feba0ccc8c0548faaaaa
|
4
|
+
data.tar.gz: 27666e7247984a3b8fabe85dfa4c7795acb9a34dcb3d856a8e3675e0634f3f7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74251e5ceabadaa9fc4afa2a5a40281c25cc40b5cc677ecf922ad2109a015078bc1b16a39999b2c1e92e4e2db16304f608941277b6ba692413111e0ed1ddf9e7
|
7
|
+
data.tar.gz: 5737f7759dc703945a14d2238db3cd638096a48f98f4db01bb9deefe65fe12a234b00af6df9c6a0b5f240fdba9449c20fcb771760c43bf36b80a91df72d1e577
|
@@ -13,18 +13,26 @@ module Tramway
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def block_title(block)
|
16
|
-
if block.
|
17
|
-
|
16
|
+
if block.is_a? Array
|
17
|
+
block.each do |current_block|
|
18
|
+
current_block.page.title
|
19
|
+
end
|
18
20
|
else
|
19
|
-
block.page.
|
21
|
+
if block.page.page_type.main?
|
22
|
+
content_for?(:application_name) && content_for(:application_name).present? ? content_for(:application_name) : @application.public_name
|
23
|
+
end
|
20
24
|
end
|
21
25
|
end
|
22
26
|
|
23
27
|
def block_tagline(block)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
+
unless block.is_a? Array
|
29
|
+
if block.page.page_type.main?
|
30
|
+
content_for?(:application_tagline) && content_for(:application_tagline).present? ? content_for(:application_tagline) : @application.tagline
|
31
|
+
else
|
32
|
+
block.each do |_current_block|
|
33
|
+
raw block.page.body
|
34
|
+
end
|
35
|
+
end
|
28
36
|
end
|
29
37
|
end
|
30
38
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
%nav.navbar.navbar-expand-lg.navbar-dark.indigo.scrolling-navbar.fixed-top
|
2
|
-
= link_to @application.public_name || yield(:application_name), '
|
2
|
+
= link_to @application.public_name || yield(:application_name), '/', class: 'navbar-brand'
|
3
3
|
%button.navbar-toggler{ type: :button, data: { toggle: :collapse, target: '#navbarSupportedContent' }, aria: { controls: 'navbarSupportedContent', expanded: 'false', label: 'Toggle navigation' } }
|
4
4
|
- if @links&.any?
|
5
5
|
= fa_icon :bars
|
@@ -19,16 +19,16 @@
|
|
19
19
|
.col-md-6.col-xl-5.mb-4
|
20
20
|
- if params[:flash] == 'success_user_sign_up'
|
21
21
|
= render 'tramway/landing/templates/alert', alert_type: :success do
|
22
|
-
|
22
|
+
= t('.sign_up_successful')
|
23
23
|
- if params[:flash] == 'success_user_sign_in'
|
24
24
|
= render 'tramway/landing/templates/alert', alert_type: :success do
|
25
|
-
|
25
|
+
= t('.sign_in_successful')
|
26
26
|
- if params[:flash] == 'error_user_sign_up'
|
27
27
|
= render 'tramway/landing/templates/alert', alert_type: :danger do
|
28
|
-
|
28
|
+
= t('.there_is_some_errors')
|
29
29
|
- if params[:flash] == 'error_user_sign_in'
|
30
30
|
= render 'tramway/landing/templates/alert', alert_type: :danger do
|
31
|
-
|
31
|
+
= t('.invalid_email_or_password')
|
32
32
|
.card
|
33
33
|
.card-body
|
34
34
|
- raise 'Initialize @header_with_form in a controller with something like that `@header_with_form = UserSignUpForm.new User.new`. `User` is your model which you want to Sign Up' unless defined?(@header_with_form)
|
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.
|
4
|
+
version: 3.1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moshinaan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Landing Engine for your Rails projects
|
14
14
|
email:
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- config/locales/ru.forms.yml
|
78
78
|
- config/locales/ru.models.yml
|
79
79
|
- config/locales/ru.state_machines.yml
|
80
|
+
- config/locales/templates.yml
|
80
81
|
- config/routes.rb
|
81
82
|
- lib/tasks/tramway/landing_tasks.rake
|
82
83
|
- lib/tramway/landing.rb
|