govuk_publishing_components 37.2.2 → 37.2.3

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: 1dd71c47ab9d769b9dd6f691ccee6bbb78fad2e7354c9c2a1f78346e2aa9d93d
4
- data.tar.gz: 63208f337846034a12a847f64047ca660a621caef8ac55038a05633194004542
3
+ metadata.gz: b2a0a4e155482dc364e89cbd2e7cadcbb47a03517188b2e10442369d3c0fe66e
4
+ data.tar.gz: ce994348af71283342f29d6ec33a8637c3a0297afb15b5ce80773b2d70008ef9
5
5
  SHA512:
6
- metadata.gz: d216ad96144deb5dbb16a130d5e31546b2bb80dd15db040e92799be492e699ea8ae420eea90b8d41490002b0c089a3a98697715133bb97a7f63e00a9be6109ce
7
- data.tar.gz: 9f32a50ce72e2512e2ac956f055b3c5abae822987736a6c2a2b672cb8faaca3c22c7eb9f121b04254e299705cee57d686827bb650bd53c98bb35841aea29dbc5
6
+ metadata.gz: 18179699f08bed1942305e6e81f3a1c5c6a7e580a2cd81746725e7d5a8e150f9147ac976fa7952c2d93ed32ec30bd815870620d7f9cc4c06a4b4a2f6950a4ae1
7
+ data.tar.gz: e6076a4100b1d371b0701960cbf7c78a0ae6593cfd6ab8011d7e1494d07925a64083e93d01f7cae1c8aa074e2f72357a9fe80348cf5b4da3e79a9edf0b8d7d04
@@ -19,6 +19,7 @@ module GovukPublishingComponents
19
19
  "name" => page.title,
20
20
  "description" => page.description || page.body,
21
21
  }
22
+ .merge(govuk_logo)
22
23
  .merge(members)
23
24
  .merge(parent_organisations)
24
25
  .merge(sub_organisations)
@@ -83,6 +84,15 @@ module GovukPublishingComponents
83
84
  "#{website_root}#{minister['role_href']}"
84
85
  end
85
86
 
87
+ def govuk_logo
88
+ logo = page.local_assigns[:logo_url]
89
+ return {} unless logo
90
+
91
+ {
92
+ "logo" => logo,
93
+ }
94
+ end
95
+
86
96
  def website_root
87
97
  @website_root ||= Plek.new.website_root
88
98
  end
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "37.2.2".freeze
2
+ VERSION = "37.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 37.2.2
4
+ version: 37.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-15 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config