tramway-landing 3.3.0.1 → 3.3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/decorators/tramway/landing/navbar/link_decorator.rb +4 -0
- data/app/forms/admin/tramway/landing/block_form.rb +1 -1
- data/app/helpers/tramway/landing/application_helper.rb +1 -0
- data/app/models/tramway/landing/block.rb +1 -1
- data/config/locales/ru.state_machines.yml +9 -10
- data/lib/tramway/landing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f40500558e099ed52a7d32a7e6f9b612683b6295ab6892f70ea7601122475d64
|
4
|
+
data.tar.gz: daf6574fa5771f5c65419a41ffa484f92c5b67982952bad1b0e50cefbffc208f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 889b5e4c7e8b25d8e9ec08b097ddde8cb5b90b6c1da75c4c177384d7c0ebbdbd0561f102bc222cc703e65af43cc2f13d675f73d1d0a77e7e480dd9a65e3ebdb8
|
7
|
+
data.tar.gz: 5a67675964d96f709e07d1a3030e9e2907eaca32c648f69df1dc673b7d20717b612c36cfb7b962733fdc3d3cb4537934d910e76bb93fee13fa7faebc4874d013
|
@@ -14,7 +14,7 @@ class Admin::Tramway::Landing::BlockForm < ::Tramway::Core::ExtendedApplicationF
|
|
14
14
|
position: {
|
15
15
|
type: :numeric,
|
16
16
|
input_options: {
|
17
|
-
hint: I18n.t('hints.tramway.landing.block.position', array: ::Tramway::Landing::Block.
|
17
|
+
hint: I18n.t('hints.tramway.landing.block.position', array: ::Tramway::Landing::Block.on_main_page.map(&:position).join(','))
|
18
18
|
}
|
19
19
|
},
|
20
20
|
block_type: :default,
|
@@ -5,6 +5,7 @@ module Tramway
|
|
5
5
|
module ApplicationHelper
|
6
6
|
include Tramway::Admin::RussianCasesHelper
|
7
7
|
include Tramway::Profiles::LinksHelper if defined?(::Tramway::Profiles)
|
8
|
+
include ::FontAwesome5::Rails::IconHelper
|
8
9
|
|
9
10
|
def actual_forms(forms)
|
10
11
|
forms = forms.reject { |f| f.form_name == 'user_sign_up' } if @signed_in
|
@@ -27,7 +27,7 @@ class Tramway::Landing::Block < ::Tramway::Landing::ApplicationRecord
|
|
27
27
|
store_accessor :button, :button_title
|
28
28
|
|
29
29
|
scope :on_main_page, lambda {
|
30
|
-
|
30
|
+
joins(:page).where(view_state: :published).where('tramway_page_pages.page_type = ?', :main).order :position
|
31
31
|
}
|
32
32
|
scope :with_navbar_link, -> { where navbar_link: :exist }
|
33
33
|
scope :header, -> { on_main_page.where(block_type: :header).first }
|
@@ -3,13 +3,12 @@ ru:
|
|
3
3
|
tramway/landing/block:
|
4
4
|
published: Опубликованные
|
5
5
|
hidden: Скрытые
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
hide: Скрыть с сайта
|
6
|
+
state_machines:
|
7
|
+
tramway/landing/block:
|
8
|
+
view_state:
|
9
|
+
states:
|
10
|
+
published: Виден
|
11
|
+
hidden: Скрытый
|
12
|
+
events:
|
13
|
+
publish: Показать на сайте
|
14
|
+
hide: Скрыть с сайта
|
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.3.0.
|
4
|
+
version: 3.3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moshinaan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Landing Engine for your Rails projects
|
14
14
|
email:
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.1
|
123
|
+
rubygems_version: 3.0.3.1
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Landing Engine for your Rails projects
|