enjoy_cms_catalog 0.4.0.1 → 0.4.0.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: f39e754f172af61495b754ca27e923ffbb8fec77
|
4
|
+
data.tar.gz: df785e260cdd91148e46cecc20a23a70f1327aeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2083378475bc2787824d240f668c6a8867d76249083e2f5079870147795408ceac0bc47c939b0d80fe838ab3ed006fbffbed9a9ef4966356cab0cba838c2da
|
7
|
+
data.tar.gz: ebc368a2edae3cb85f4c2f66fb6b3a795fbd680e92de3288560cb0bc6201546eeac35694ce97da904f6f037b46992efea66ab348c50955cbc321047fa18508e9
|
@@ -4,8 +4,8 @@ module Enjoy::Catalog
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
-
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
8
|
-
add_breadcrumb I18n.t('enjoy.breadcrumbs.catalog'), :enjoy_catalog_path
|
7
|
+
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
8
|
+
add_breadcrumb I18n.t('enjoy.breadcrumbs.catalog'), :enjoy_catalog_path if insert_breadcrumbs
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -26,8 +26,8 @@ module Enjoy::Catalog
|
|
26
26
|
@children = @category.children.enabled.sorted.all.to_a
|
27
27
|
@items = @category.items.enabled.sorted.all.to_a
|
28
28
|
|
29
|
-
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
30
|
-
add_breadcrumb @category.name, url_for(@category)
|
29
|
+
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
30
|
+
add_breadcrumb @category.name, url_for(@category) if insert_breadcrumbs
|
31
31
|
end
|
32
32
|
|
33
33
|
|
@@ -4,8 +4,8 @@ module Enjoy::Catalog
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
-
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
8
|
-
add_breadcrumb I18n.t('enjoy.breadcrumbs.items'), :enjoy_items_path
|
7
|
+
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
8
|
+
add_breadcrumb I18n.t('enjoy.breadcrumbs.items'), :enjoy_items_path if insert_breadcrumbs
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -25,8 +25,8 @@ module Enjoy::Catalog
|
|
25
25
|
return true
|
26
26
|
end
|
27
27
|
|
28
|
-
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
29
|
-
add_breadcrumb @item.name, url_for(@item)
|
28
|
+
if Enjoy::Catalog.config.breadcrumbs_on_rails_support
|
29
|
+
add_breadcrumb @item.name, url_for(@item) if insert_breadcrumbs
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
@@ -45,10 +45,6 @@ module Enjoy::Catalog
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
def insert_breadcrumbs
|
49
|
-
true
|
50
|
-
end
|
51
|
-
|
52
48
|
end
|
53
49
|
end
|
54
50
|
end
|