workarea-admin 3.5.3 → 3.5.4

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: b1558c260ab12c9d4240000e2a7df00313dd818985de7d71131d83abc449af35
4
- data.tar.gz: 6adde7ce114066200bf246547febd3c86d8d0b1ecb5d1c565e656aad613c6126
3
+ metadata.gz: 6b6bb950d14a9f2250d9ae103925174fc87044864b4adb46f4908f8bcc0207b6
4
+ data.tar.gz: 025a81b2cad5b8fe79fec136013a8046b1843af8e2d229068370289d0df0e95f
5
5
  SHA512:
6
- metadata.gz: ec05e38635c7685c4041a73f22b41624b0e7e05027e9c611b1cbdfeae9187d5716b70b2c34f5d9f2ffd7413a2d4fefa0c48c592fd85223f3d02a224c53a52d54
7
- data.tar.gz: e5aa47646c9600073fe5e531dbfef0a5517033167f2919f7046fa504007118fc1f2a278cbf5f21cfc07af0c40a574f4b6be3ddba016ec8c77ee1003c4d489f39
6
+ metadata.gz: 46bccff3eebf3e8c255842732f53ba3058e9502bc67a6286799a24dd7d05c6283550c5afc9225c5ddc99f720d6337d8a0ded7e511c226e8c4ddc4e27002d41d7
7
+ data.tar.gz: 18394219d4e584d9b842fccf1aca6a7009c9d71e6e42fa4c858de7958189cad82e16c9ef236f19d474928a06df2451c5051db88ab7a5fb9ec381e0dc424f7e9b
@@ -6,6 +6,16 @@ module Workarea
6
6
  @tmp[name.to_s.systemize] ||= Content.for(name.to_s.systemize)
7
7
  end
8
8
 
9
+ def layout_footer_area_id
10
+ @layout_footer_area_id ||= begin
11
+ content = Admin::ContentViewModel.wrap(
12
+ current_system_page_content_for(:layout)
13
+ )
14
+
15
+ content.areas.find { |a| a =~ /footer/i }
16
+ end
17
+ end
18
+
9
19
  def render_content_areas(content)
10
20
  partial = "workarea/admin/content/types/_#{content.slug}"
11
21
  if lookup_context.find_all(partial).any?
@@ -73,7 +73,8 @@
73
73
  %li.menu__item= link_to t('workarea.admin.layout.your_account_on_the_storefront'), storefront.users_account_path, class: 'menu__link'
74
74
  %li.menu__item= link_to t('workarea.admin.layout.browse_storefront_as_guest'), guest_browsing_path, class: 'menu__link', data: { method: :post }
75
75
  %li.menu__item= link_to t('workarea.admin.layout.edit_the_home_page'), edit_content_path(current_system_page_content_for(:home_page)), class: 'menu__link'
76
- %li.menu__item= link_to t('workarea.admin.layout.edit_the_footer'), edit_content_path(current_system_page_content_for(:layout), area_id: 'footer_navigation'), class: 'menu__link'
76
+ - if layout_footer_area_id.present?
77
+ %li.menu__item= link_to t('workarea.admin.layout.edit_the_footer'), edit_content_path(current_system_page_content_for(:layout), area_id: layout_footer_area_id), class: 'menu__link'
77
78
  %li.menu__item.menu__item--heading
78
79
  %span.menu__heading= t('workarea.admin.layout.most_visited')
79
80
  - if most_visited.blank?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 3.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-07 00:00:00.000000000 Z
11
+ date: 2020-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.5.3
19
+ version: 3.5.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.5.3
26
+ version: 3.5.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: workarea-storefront
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.5.3
33
+ version: 3.5.4
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: 3.5.3
40
+ version: 3.5.4
41
41
  description: Provides site administration functionality for the Workarea Commerce
42
42
  Platform.
43
43
  email:
@@ -1522,7 +1522,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1522
1522
  - !ruby/object:Gem::Version
1523
1523
  version: '0'
1524
1524
  requirements: []
1525
- rubygems_version: 3.0.6
1525
+ rubygems_version: 3.1.2
1526
1526
  signing_key:
1527
1527
  specification_version: 4
1528
1528
  summary: Admin for the Workarea Commerce Platform