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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc9815cf619ada642aa9d5f68b7c322f74ae2541c18ff105c8b100b7a603b65b
4
- data.tar.gz: 809f5a0d8f1bd62dbe6c7a092c4f988f32f875784a8ba85a08f08ad16b967bce
3
+ metadata.gz: 767b052086cbf7f477174d75bda91e73dfeb5337e493feba0ccc8c0548faaaaa
4
+ data.tar.gz: 27666e7247984a3b8fabe85dfa4c7795acb9a34dcb3d856a8e3675e0634f3f7b
5
5
  SHA512:
6
- metadata.gz: 7acfeb6e279f8f11708287c50fbef4ec82a9f6e38217d88de00f47db94dccb083245c992f8bb42560c5f2c096da3d973c5878aadadbca0ec61d40e48cebb97ba
7
- data.tar.gz: 853f6e6a4eaf19d77a9128d7185d2e502d41df33bb5558f21995e40bc0d8897434741feb8a3b6d9b6eb32f072b0711af8f39d986022251182390e4fdae70796c
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.page.page_type.main?
17
- content_for?(:application_name) && content_for(:application_name).present? ? content_for(:application_name) : @application.public_name
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.title
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
- if block.page.page_type.main?
25
- content_for?(:application_tagline) && content_for(:application_tagline).present? ? content_for(:application_tagline) : @application.tagline
26
- else
27
- raw block.page.body
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), '#', class: 'navbar-brand'
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
@@ -4,9 +4,9 @@
4
4
  .row
5
5
  .col-md-6
6
6
  %h5.title
7
- = block_title(block)
7
+ - block_title(block)
8
8
  %p
9
- = block_tagline(block)
9
+ - block_tagline(block)
10
10
  .logo_collage.effect-parent
11
11
  = yield :footer_logos
12
12
  .col-md-6
@@ -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
- Sign up successful!
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
- Sign In successful!
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
- There is some errors
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
- There is some errors
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)
@@ -0,0 +1,9 @@
1
+ ru:
2
+ tramway:
3
+ landing:
4
+ templates:
5
+ alert:
6
+ sign_up_successful: Регистрация прошла успешно
7
+ ign_in_successful: Авторизация прошла успешно
8
+ there_is_some_errors: Исправьте ошибки
9
+ ivalid_email_or_password: email или пароль введены неверно
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '3.1.1.1'
5
+ VERSION = '3.1.1.6'
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.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-05-25 00:00:00.000000000 Z
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