tramway-landing 3.1.1.5 → 3.1.1.10

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: 8cdf40a2a324672c52c438e27d760d6a25a74bf5254b2904d357354bb52ee2bb
4
- data.tar.gz: 1afc8e68a3b43c2f50d38a2bc25673e4d055762d6fae81d1f935b30e9fa3fdd3
3
+ metadata.gz: 6357cedad3d2422008f3d4e6bad426889c79ece0e777041fe34988f72536b757
4
+ data.tar.gz: be5301c2c4dfc3e64ca2db13b6e8d4b3bf69f1e82388ad99f8139a48dc55968d
5
5
  SHA512:
6
- metadata.gz: f174636195a5d28be61a438e67021db93e3cab990bf8fe356da21fe62cb83826fbfffc0deea3e02e1bd27780a180027c7e08adaff6842f8308a3807ca3cbc739
7
- data.tar.gz: b76eecea6f7c4055c0238032cd0477474796bc1950207d3f3ad16268533258503f0f4b34536c859bad155abc728c7e83eddccdb2d628d2147a98afecd587b019
6
+ metadata.gz: 9caf4587006b41ca494e6af23b18bbd383213c99ac61a47a802c70f4e8483aaf03ed452998b4e27865d0b0e1e59b3e15d8f10311bc6e0f1615f4f39bf624014b
7
+ data.tar.gz: 0dcc7a118571778183d033984de220038de36ba3808c7647652487cd2c6963c6572e54dedda32d10922a970fd38c52b60c57a9cfbaf1db5821fec33ff81912eb
@@ -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
@@ -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
@@ -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)
@@ -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.5'
5
+ VERSION = '3.1.1.10'
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.5
4
+ version: 3.1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - moshinaan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-15 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email: