cmor_cms 0.0.42.pre → 0.0.43.pre
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62378282011ac914e66b1b911b6a9e0af66dc39cc90e6f3781a9f60a91dc889e
|
4
|
+
data.tar.gz: 62766f7b594a93bfefa7e5a04fd48a60afd06da9cb1678f14e16e5ebd6464cbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c78ab39e5da99a7c81b92e4274cf285c075e6d7f1f3724630084d4ce56d50ccdc1e53a229af27a29ba49a5aadd153e2cba71adfef1f66ca440557f3778f8547
|
7
|
+
data.tar.gz: fa57e4753ec0a31a7ae4647b7b1e198d1825a886cb445fd43068e3c626a935c493fa8825ccccb11b8f804ba8f581b8b94a2b7e1f9516a8e0acdf68de472b6f81
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Cmor::Cms::NavigationItem::PropertiesConcern
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
serialize :properties, OpenStruct
|
6
|
+
delegate *Cmor::Cms::Configuration.navigation_item_properties, to: :li_attributes
|
7
|
+
delegate *Cmor::Cms::Configuration.navigation_item_properties.collect { |a| "#{a}=".to_sym }, to: :li_attributes
|
8
|
+
end
|
9
|
+
|
10
|
+
def highlights_on
|
11
|
+
properties.highlights_on ||= nil
|
12
|
+
end
|
13
|
+
|
14
|
+
delegate :highlights_on=, to: :properties
|
15
|
+
|
16
|
+
def li_attributes
|
17
|
+
properties.li_attributes ||= OpenStruct.new
|
18
|
+
end
|
19
|
+
|
20
|
+
delegate :li_attributes=, to: :properties
|
21
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Cmor::Cms
|
2
2
|
class NavigationItem < ActiveRecord::Base
|
3
|
-
include Cmor::Cms::NavigationItem::PropertiesConcern
|
3
|
+
# include Cmor::Cms::NavigationItem::PropertiesConcern
|
4
4
|
|
5
5
|
# associations
|
6
6
|
belongs_to :navigation,
|
@@ -84,5 +84,29 @@ module Cmor::Cms
|
|
84
84
|
def update_url_form_page
|
85
85
|
self.url = build_url_from_page(page.locale, page.pathname, page.basename, page.home_page?)
|
86
86
|
end
|
87
|
+
|
88
|
+
module PropertiesConcern
|
89
|
+
extend ActiveSupport::Concern
|
90
|
+
|
91
|
+
included do
|
92
|
+
serialize :properties, OpenStruct
|
93
|
+
delegate *Cmor::Cms::Configuration.navigation_item_properties, to: :li_attributes
|
94
|
+
delegate *Cmor::Cms::Configuration.navigation_item_properties.collect { |a| "#{a}=".to_sym }, to: :li_attributes
|
95
|
+
end
|
96
|
+
|
97
|
+
def highlights_on
|
98
|
+
properties.highlights_on ||= nil
|
99
|
+
end
|
100
|
+
|
101
|
+
delegate :highlights_on=, to: :properties
|
102
|
+
|
103
|
+
def li_attributes
|
104
|
+
properties.li_attributes ||= OpenStruct.new
|
105
|
+
end
|
106
|
+
|
107
|
+
delegate :li_attributes=, to: :properties
|
108
|
+
end
|
109
|
+
|
110
|
+
include PropertiesConcern
|
87
111
|
end
|
88
112
|
end
|
@@ -12,7 +12,7 @@ module ActionView
|
|
12
12
|
original_initialize(source, identifier, handler, details)
|
13
13
|
end
|
14
14
|
else
|
15
|
-
def initialize(source, identifier, handler, format: nil, variant: nil, locals: nil, virtual_path: nil, layout:
|
15
|
+
def initialize(source, identifier, handler, format: nil, variant: nil, locals: nil, virtual_path: nil, layout: nil)
|
16
16
|
@layout = layout
|
17
17
|
original_initialize(source, identifier, handler, format: format, variant: variant, locals: locals, virtual_path: virtual_path)
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.43.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.43.pre
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.43.pre
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cmor_core_frontend
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.
|
47
|
+
version: 0.0.43.pre
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.43.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -418,7 +418,7 @@ files:
|
|
418
418
|
- app/assets/stylesheets/cmor/cms/application.css
|
419
419
|
- app/assets/stylesheets/cmor/cms/application/keep.css
|
420
420
|
- app/assets/stylesheets/cmor_cms.css
|
421
|
-
- app/concerns/cmor/cms/navigation_item/properties_concern.rb
|
421
|
+
- app/concerns/cmor/cms/navigation_item/properties_concern.rb~
|
422
422
|
- app/controllers/cmor/cms/page_controller.rb
|
423
423
|
- app/importers/cmor/cms/importers/navigation.rb
|
424
424
|
- app/importers/cmor/cms/importers/navigation_item.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Cmor::Cms
|
2
|
-
module NavigationItem::PropertiesConcern
|
3
|
-
extend ActiveSupport::Concern
|
4
|
-
|
5
|
-
included do
|
6
|
-
serialize :properties, OpenStruct
|
7
|
-
delegate *Cmor::Cms::Configuration.navigation_item_properties, to: :li_attributes
|
8
|
-
delegate *Cmor::Cms::Configuration.navigation_item_properties.collect { |a| "#{a}=".to_sym }, to: :li_attributes
|
9
|
-
end
|
10
|
-
|
11
|
-
def highlights_on
|
12
|
-
properties.highlights_on ||= nil
|
13
|
-
end
|
14
|
-
|
15
|
-
delegate :highlights_on=, to: :properties
|
16
|
-
|
17
|
-
def li_attributes
|
18
|
-
properties.li_attributes ||= OpenStruct.new
|
19
|
-
end
|
20
|
-
|
21
|
-
delegate :li_attributes=, to: :properties
|
22
|
-
end
|
23
|
-
end
|