govuk_publishing_components 21.17.0 → 21.18.0

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: 52488ad279c63ddeffa0a0271317099ec03a3689434cbe5fc6f2720ca3f9e253
4
- data.tar.gz: 887c6d2ceb81aef07a438d4b268aee234c705ca122ce691a024490cddb8b6594
3
+ metadata.gz: 3c480a133414e7813c564f3d73c83eb46c6027dd6df9ddc4dd8bde39970522ef
4
+ data.tar.gz: 39f22123a41b81a5b7361c9fc4a20ceb1c73f3091e203c2e62c8cecfd34bb55b
5
5
  SHA512:
6
- metadata.gz: 448c790b524f9a8673169860c4dd020046bf2539285c7d5b25ba65998217ddd4e74f7d6b65b4f4721afaff3d844c768bf7d2e525583d1b9ff0342a1a7b537e4a
7
- data.tar.gz: 75d5cb8eefbe66cbd69b4b4c46a3a69f8f4faa8d0e9c16689e7540a2a8ce7ee2d56feb98a5677a7698822028020ac741f7fa9120b373ff92da87bdf35a815781
6
+ metadata.gz: 7b9f0c5be55c829492c0246b2d2a075f5825aaa0b6337a32ed137636b043c8c2983e7f8d0654736caac00cb952401345454d7e4e0c3b44a199ae343f4a3002e2
7
+ data.tar.gz: e6267ae6a5b50aafa0173919d1a14cee5fdabd55efead4d96f6e205454c2adf2db961c62aa348c8e5f3f747933e35941acb624daf645c22487c016044b608ec4
@@ -79,7 +79,10 @@ module GovukPublishingComponents
79
79
  def show_brexit_cta?
80
80
  # If tagged directly to /brexit or /world/brexit
81
81
  # Or if tagged to a taxon which has /brexit as a parent
82
- tagged_to_brexit?
82
+ # And is not the brexit checker start page
83
+ brexit_start_page_content_id = "58d093a1-787d-4f36-a568-86da23a7b884"
84
+ page_content_id = content_item["content_id"]
85
+ tagged_to_brexit? && (page_content_id != brexit_start_page_content_id)
83
86
  end
84
87
 
85
88
  def step_by_step_count
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '21.17.0'.freeze
2
+ VERSION = '21.18.0'.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: 21.17.0
4
+ version: 21.18.0
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: 2020-01-06 00:00:00.000000000 Z
11
+ date: 2020-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters