govuk_publishing_components 23.9.0 → 23.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +20 -0
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +4 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cd0fe20798b2b09a2fdb3859bf4f0ed0bf228b09eff59bcfcd3876040e2ccb3
|
4
|
+
data.tar.gz: bf0634d46d9a7d2d238ab1db63c0501dd137a1caa6ee396b22ad64ebccc2ba3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48ee8d3872e95988f9774f6587471cfd52949d235355d7c9da14f3d08d4d05e81304811840a54ce3a5f6f8a4c0753b2c75285e9d5526659c2dc88415c7a1ee1b
|
7
|
+
data.tar.gz: fc1baafeebbb3cf0c3d9a3d79d782aa4b3e70e115d8b08f9c67594fbde3b9d60824eeadaf485a279620e90273117f00d10530e7c42a071d1bca9e4bdd9a92268
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="gem-c-contextual-sidebar">
|
5
5
|
<% if navigation.show_brexit_cta? && navigation.step_by_step_count.zero? %>
|
6
6
|
<%= render 'govuk_publishing_components/components/contextual_sidebar/brexit_cta' %>
|
7
|
-
<% elsif navigation.step_by_step_count.zero? %>
|
7
|
+
<% elsif navigation.step_by_step_count.zero? && !navigation.transition_countdown_exception? %>
|
8
8
|
<%= render 'govuk_publishing_components/components/transition_countdown', {
|
9
9
|
title: t("components.related_navigation.transition.title"),
|
10
10
|
url: t("components.related_navigation.transition.link_path"),
|
@@ -144,3 +144,23 @@ examples:
|
|
144
144
|
- text: Find out what you’ll get
|
145
145
|
href: "/settled-status-eu-citizens-families/what-settled-and-presettled-status-means"
|
146
146
|
optional: false
|
147
|
+
transition_countdown_exception:
|
148
|
+
data:
|
149
|
+
content_item:
|
150
|
+
title: "30 creative teams awarded up to £100,000 each for Festival UK* 2022 R&D project"
|
151
|
+
content_id: "c3752802-f091-43a9-ba90-33568fccf391"
|
152
|
+
links:
|
153
|
+
ordered_related_items:
|
154
|
+
- title: Find an apprenticeship
|
155
|
+
base_path: /apply-apprenticeship
|
156
|
+
- title: Training and study at work
|
157
|
+
base_path: /training-study-work-your-rights
|
158
|
+
- title: Careers helpline for teenagers
|
159
|
+
base_path: /careers-helpline-for-teenagers
|
160
|
+
document_collections:
|
161
|
+
- title: Recruit an apprentice (formerly apprenticeship vacancies)
|
162
|
+
base_path: /government/collections/apprenticeship-vacancies
|
163
|
+
document_type: document_collection
|
164
|
+
- title: The future of jobs and skills
|
165
|
+
base_path: /government/collections/the-future-of-jobs-and-skills
|
166
|
+
document_type: document_collection
|
@@ -113,6 +113,10 @@ module GovukPublishingComponents
|
|
113
113
|
tagged_to_brexit? && (page_content_id != brexit_start_page_content_id)
|
114
114
|
end
|
115
115
|
|
116
|
+
def transition_countdown_exception?
|
117
|
+
content_item["content_id"] == "c3752802-f091-43a9-ba90-33568fccf391"
|
118
|
+
end
|
119
|
+
|
116
120
|
def step_by_step_count
|
117
121
|
step_nav_helper.step_navs.count
|
118
122
|
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: 23.9.
|
4
|
+
version: 23.9.1
|
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-12-
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|