tramway-landing 3.3.0.2 → 3.3.0.6

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: 21e172d1a3cf9dd66b4b5a57c888757897350582b258f7afaee10f8e0e189ff8
4
- data.tar.gz: b9ba5725b3838b201056acfb065988f91d74ca28f49ac919f77e45245a042fce
3
+ metadata.gz: ca3d58fd243219a91f5d911e478fbe72472b992603db8305e220c7071e2d484c
4
+ data.tar.gz: 7c8363d0ab002d40d05a7ac6850c67c39339f385ef66a322b50a7849936f56d5
5
5
  SHA512:
6
- metadata.gz: 2bffa41e45f1cc453e703182ad19c309662c69258debc181471704f6c0cb47733afee1317068a6e0f08adb8dc275cbca14e6f27bb2590792a201cd06cd1af8bc
7
- data.tar.gz: 29276bb24509250f6f8d29eb2eed4ef68fdf77a7cfe4dc173f9a6ee3c95bee66a57382434b7d10648c3d7371f04e4e4b0b2ce6aad650938259f0298bcec8df26
6
+ metadata.gz: 7c2554a06476684f2fce75c3e48732e173aa82f2c88586bbbbd133a8b1debf341baec3f1988badd614989de6cfb2ffddeff0950f43bf5318a6f1cc5ba834b252
7
+ data.tar.gz: dfdbec98a7ae2228767665c98039b210f74015788c578f125b5bc6e3a56692c2a7808bd45f7981d877279b633716d382eab061cf50c3e0e1e4cb59e56286f4be
@@ -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 }
@@ -1,5 +1,5 @@
1
1
  - if Tramway::Landing.navbar_for(@application_engine || @application&.name)
2
- %nav.navbar.navbar-expand-lg.navbar-dark.indigo.scrolling-navbar.fixed-top
2
+ %nav.navbar.navbar-expand-lg.navbar-dark.indigo.scrolling-navbar.fixed-top{ style: 'padding-left: 1rem' }
3
3
  = link_to @application&.public_name || yield(:application_name), '/', class: 'navbar-brand'
4
4
  %button.navbar-toggler{ type: :button, data: { toggle: :collapse, target: '#navbarSupportedContent' }, aria: { controls: 'navbarSupportedContent', expanded: 'false', label: 'Toggle navigation' } }
5
5
  - if @links&.any?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '3.3.0.2'
5
+ VERSION = '3.3.0.6'
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.2
4
+ version: 3.3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - moshinaan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2022-02-07 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.4
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