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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a45efb32f0c28f7ae74fa03e12fefe9830d9e1679a7182dd5b6fcb2a31aa91ca
4
- data.tar.gz: 43e634520e64f88799d85e78777f09f556d02142f0ae38ec17f4cc937d3831aa
3
+ metadata.gz: f40500558e099ed52a7d32a7e6f9b612683b6295ab6892f70ea7601122475d64
4
+ data.tar.gz: daf6574fa5771f5c65419a41ffa484f92c5b67982952bad1b0e50cefbffc208f
5
5
  SHA512:
6
- metadata.gz: 89d5a7d94f0f52e7895360d84e417397ee9dcc039bcc152c0a7232bb8cc4617f20268c5c77bfd5951eb310ea1e522e85af85a8e8d8bf9245719012b49dcfec96
7
- data.tar.gz: e4eb3543ba967199ace274b51eff0170a03073bfe2e78e5f262461a1c15f5cabdbb846e06390cebcb7fff6b0c9d9d4712f6ff315bae4c33a52115cf5a37063fb
6
+ metadata.gz: 889b5e4c7e8b25d8e9ec08b097ddde8cb5b90b6c1da75c4c177384d7c0ebbdbd0561f102bc222cc703e65af43cc2f13d675f73d1d0a77e7e480dd9a65e3ebdb8
7
+ data.tar.gz: 5a67675964d96f709e07d1a3030e9e2907eaca32c648f69df1dc673b7d20717b612c36cfb7b962733fdc3d3cb4537934d910e76bb93fee13fa7faebc4874d013
@@ -8,4 +8,8 @@ class Tramway::Landing::Navbar::LinkDecorator < Tramway::Core::ApplicationDecora
8
8
  def link
9
9
  object[:link]
10
10
  end
11
+
12
+ def icon
13
+ object[:icon]
14
+ end
11
15
  end
@@ -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.active.on_main_page.map(&:position).join(','))
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
- active.joins(:page).where(view_state: :published).where('tramway_page_pages.page_type = ?', :main).order :position
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
- activerecord:
7
- state_machines:
8
- tramway/landing/block:
9
- view_state:
10
- states:
11
- published: Виден
12
- hidden: Скрытый
13
- events:
14
- publish: Показать на сайте
15
- hide: Скрыть с сайта
6
+ state_machines:
7
+ tramway/landing/block:
8
+ view_state:
9
+ states:
10
+ published: Виден
11
+ hidden: Скрытый
12
+ events:
13
+ publish: Показать на сайте
14
+ hide: Скрыть с сайта
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '3.3.0.1'
5
+ VERSION = '3.3.0.5'
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.3.0.1
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-02-11 00:00:00.000000000 Z
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.2
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