tramway-landing 3.1.1.6 → 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: 767b052086cbf7f477174d75bda91e73dfeb5337e493feba0ccc8c0548faaaaa
4
- data.tar.gz: 27666e7247984a3b8fabe85dfa4c7795acb9a34dcb3d856a8e3675e0634f3f7b
3
+ metadata.gz: 259d9429acccbee8e412ba037adf4381c0e4c172db64825b8fce1cc3d2b3656e
4
+ data.tar.gz: 18dfc48764721a6e6ce2758ccc3890998694d947fdbbbd81f0cda564b329b446
5
5
  SHA512:
6
- metadata.gz: 74251e5ceabadaa9fc4afa2a5a40281c25cc40b5cc677ecf922ad2109a015078bc1b16a39999b2c1e92e4e2db16304f608941277b6ba692413111e0ed1ddf9e7
7
- data.tar.gz: 5737f7759dc703945a14d2238db3cd638096a48f98f4db01bb9deefe65fe12a234b00af6df9c6a0b5f240fdba9449c20fcb771760c43bf36b80a91df72d1e577
6
+ metadata.gz: 1f651258e6e670687fa85e0d43d3d951a4f2f8a857394f907823e60926fbcf957e6213d3488a6b68ced67a0e3ea0a42385f4aa0a25bc235b0eb4a124a5366459
7
+ data.tar.gz: 7253ae02f50de70c4e0eef25a29022432af5ebd66eef3223e3e59cd650d3a8aa30d0227ab5cd718f5e31a81364aaa0ac8adb31492e869f7ad92cbed00d8dd93a
@@ -8,12 +8,12 @@ $(document).ready(function() {
8
8
  });
9
9
 
10
10
  const iframe_selectors_for_video = ['iframe[src*="vk.com"]', 'iframe[src*="youtu.be"]', 'iframe[src*="youtube.com"]'];
11
- for (const selector in iframe_selectors_for_video) {
11
+ iframe_selectors_for_video.forEach(function(selector) {
12
12
  $(selector).each(function() {
13
13
  width = $(this).parents('div').first().width();
14
14
  height = width / 16 * 9;
15
15
  $(this).width(width);
16
16
  $(this).height(height);
17
17
  });
18
- }
18
+ })
19
19
  });
@@ -69,3 +69,11 @@ footer
69
69
  top: 1vh
70
70
  right: 1vh
71
71
  left: 1vh
72
+
73
+ .dropdown-item:hover
74
+ background: #696969 !important
75
+
76
+ .scrollable
77
+ height: auto
78
+ max-height: 30em
79
+ overflow-x: hidden
@@ -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,8 +1,8 @@
1
1
  - if link.is_a? Hash
2
2
  .nav-item.dropdown
3
- %a.nav-link.dropdown-toggle{ id: "dropdown_menu_button_#{link.keys.first}", aria: { expanded: :false, haspopup: :true }, data: { toggle: :dropdown } }
3
+ %a.nav-link.dropdown-toggle.scrollable{id: "dropdown_menu_button_#{link.keys.first}", aria: { expanded: :false, haspopup: :true }, data: { toggle: :dropdown } }
4
4
  = link.keys.first
5
- .dropdown-menu.dropdown-primary{ aria: { labelledby: "dropdown_menu_button_#{link.keys.first}" } }
5
+ .dropdown-menu.dropdown-primary.scrollable{ aria: { labelledby: "dropdown_menu_button_#{link.keys.first}" } }
6
6
  - link.values.first.each do |menu_item|
7
7
  = link_to menu_item.title, menu_item.link, class: 'dropdown-item'
8
8
  - else
@@ -1,29 +1,17 @@
1
1
  - records_in_the_row = 4
2
- - if phone.present? || email.present?
2
+ - if defined?(::Tramway::Profiles)
3
+ - social_networks = (@application.social_networks.active if @application.respond_to?(:social_networks)) unless social_networks
4
+ - social_networks&.each do |profile|
5
+ %ul.list-group
6
+ %li.list-group-item
7
+ = profile_link profile
8
+ - if yield(:phone).present? || yield(:email).present?
3
9
  .row.features-small.mt-5.wow.fadeIn
4
- - if phone.present?
10
+ - if yield(:phone).present?
5
11
  .col-xl-3.col-lg-6
6
12
  .row.link{ data: { href: "tel:#{phone}" } }
7
13
  .col-2
8
14
  %i.fas.fa-2x.mb-1.fa-phone.indigo-text{ aria: { hidden: 'true' } }
9
15
  .col-10.mb-2.pl-3
10
16
  %h5.feature-title.font-bold.mb-1
11
- = phone
12
- - if email.present?
13
- .col-xl-3.col-lg-6
14
- .row.link{ data: { href: "mailto:#{email}" } }
15
- .col-2
16
- %i.fas.fa-2x.mb-1.fa-envelope.indigo-text{ aria: { hidden: 'true' } }
17
- .col-10.mb-2.pl-3
18
- %h5.feature-title.font-bold.mb-1
19
- = email
20
- - social_networks&.each_slice(records_in_the_row) do |slice|
21
- .row.features-small.mt-5.wow.fadeIn
22
- - slice.each do |social_network, index|
23
- .col-xl-3.col-lg-6
24
- .row.link{ data: { href: profile_url(social_network) } }
25
- .col-2
26
- %i.fab.fa-2x.mb-1.indigo-text{ aria: { hidden: 'true' }, class: "fa-#{social_network.network_name}" }
27
- .col-10.mb-2.pl-3
28
- %h5.feature-title.font-bold.mb-1
29
- = social_network.title
17
+ = yield(:phone)
@@ -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
@@ -3,7 +3,8 @@ ru:
3
3
  landing:
4
4
  templates:
5
5
  alert:
6
+ invalid_email_or_password: Пользователь не найден или введен неверный пароль
6
7
  sign_up_successful: Регистрация прошла успешно
7
8
  ign_in_successful: Авторизация прошла успешно
8
9
  there_is_some_errors: Исправьте ошибки
9
- ivalid_email_or_password: email или пароль введены неверно
10
+
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '3.1.1.6'
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.6
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-08-04 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: