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 +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/app/views/layouts/tramway/landing/_navbar.html.haml +1 -1
- 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: ca3d58fd243219a91f5d911e478fbe72472b992603db8305e220c7071e2d484c
|
4
|
+
data.tar.gz: 7c8363d0ab002d40d05a7ac6850c67c39339f385ef66a322b50a7849936f56d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c2554a06476684f2fce75c3e48732e173aa82f2c88586bbbbd133a8b1debf341baec3f1988badd614989de6cfb2ffddeff0950f43bf5318a6f1cc5ba834b252
|
7
|
+
data.tar.gz: dfdbec98a7ae2228767665c98039b210f74015788c578f125b5bc6e3a56692c2a7808bd45f7981d877279b633716d382eab061cf50c3e0e1e4cb59e56286f4be
|
@@ -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 }
|
@@ -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?
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moshinaan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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
|
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
|