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 +4 -4
- data/app/assets/javascripts/tramway/landing/application.js +2 -2
- data/app/assets/stylesheets/tramway/landing/application.sass +8 -0
- data/app/views/layouts/tramway/landing/_navbar.html.haml +1 -1
- data/app/views/layouts/tramway/landing/navbar/_link.html.haml +2 -2
- data/app/views/tramway/landing/blocks/block_types/contacts/_without_map.html.haml +9 -21
- data/config/locales/templates.yml +2 -1
- data/lib/tramway/landing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6357cedad3d2422008f3d4e6bad426889c79ece0e777041fe34988f72536b757
|
4
|
+
data.tar.gz: be5301c2c4dfc3e64ca2db13b6e8d4b3bf69f1e82388ad99f8139a48dc55968d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
});
|
@@ -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
|
@@ -1,8 +1,8 @@
|
|
1
1
|
- if link.is_a? Hash
|
2
2
|
.nav-item.dropdown
|
3
|
-
%a.nav-link.dropdown-toggle{
|
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
|
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
|
-
|
10
|
+
|
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.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-
|
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:
|