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 +4 -4
- data/app/assets/javascripts/tramway/landing/application.js +2 -2
- data/app/assets/stylesheets/tramway/landing/application.sass +8 -0
- data/app/helpers/tramway/landing/application_helper.rb +8 -4
- 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/app/views/tramway/landing/templates/_section_with_image_and_text.html.haml +5 -1
- 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: 259d9429acccbee8e412ba037adf4381c0e4c172db64825b8fce1cc3d2b3656e
|
4
|
+
data.tar.gz: 18dfc48764721a6e6ce2758ccc3890998694d947fdbbbd81f0cda564b329b446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
});
|
@@ -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
|
-
|
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.
|
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{
|
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)
|
@@ -1,5 +1,9 @@
|
|
1
1
|
.row.page{ id: block.anchor }
|
2
2
|
.col-md-7
|
3
|
-
|
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
|
-
|
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.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-
|
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:
|