effective_pages 1.1.1 → 1.1.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb3150222d696ba34d6730dbb508ad3c275576c5
|
4
|
+
data.tar.gz: 53ff53ecdd6b9509730bb2d39caed59c14ec1f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cefaab3e63906996e5d16307d656711d8cf7249a934026588d071abcd7a44f81c481ab999de76ee1b39705d5610af0677746f2a3160946962e5890453d0e385b
|
7
|
+
data.tar.gz: 1499a98f2c42d5eed1201e28efdd30e0531a6d0e3a62caae6c7833942dc11bcfd5ef3d9ded26a4fc769740fee58cef5f5d193381a9c5f955a4b28c69c241a4bd
|
@@ -8,6 +8,9 @@ module EffectiveBreadcrumbsHelper
|
|
8
8
|
menu_item = if page.kind_of?(Effective::Page)
|
9
9
|
url = effective_pages.page_path(page)
|
10
10
|
menu.menu_items.find { |item| item.menuable == page || item.title == page.title || item.url == url }
|
11
|
+
elsif page.kind_of?(String)
|
12
|
+
downcased = page.downcase
|
13
|
+
menu.menu_items.find { |item| item.title.downcase == downcased || item.url == downcased }
|
11
14
|
else
|
12
15
|
menu.menu_items.find { |item| item.menuable == page || item.title == page || item.url == page }
|
13
16
|
end
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.row.effective-admin-actions
|
5
5
|
.col-sm-6
|
6
6
|
%p
|
7
|
-
|
7
|
+
All menu editing may be done from the fullscreen editor. Just drag and drop menu items.
|
8
8
|
.col-sm-6
|
9
9
|
%p.text-right
|
10
10
|
= link_to "Edit #{@menu}", effective_regions.edit_path('/'), class: 'btn btn-primary', 'data-no-turbolink': true, target: '_blank'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|