govuk_publishing_components 35.1.0 → 35.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da29b78f56ceabe774802deed6b8570f0459ba1414b60d0a46b1c891facb5b25
|
4
|
+
data.tar.gz: 2b431b2babeb7dc74281f27b13f23525b658d8cace7727ed08658945d0669763
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74a753d9e83276ae6c71bf0ce682a8cfd269195adda6ca9d04188d729f19da63103de4a31285902a5195b87762921a905adb91acf5674a19e1b0e90a9b3c5f6d
|
7
|
+
data.tar.gz: 17a2048555b604f03a55ab8756c9a33a8b1324b8c2db8944868264d06526e1e01fd2ced69b3fb06746be8252e32aaeb0d7b2a28ae005b0ccd082986f5b408d4a
|
@@ -17,8 +17,6 @@
|
|
17
17
|
// if there are no accordion sections on the browse level 2 page
|
18
18
|
// then it is a default page with one or two lists
|
19
19
|
return document.querySelectorAll('[data-track-count="accordionSection"]').length || document.querySelectorAll('main .govuk-list').length
|
20
|
-
case isCostOfLivingHub():
|
21
|
-
return document.querySelectorAll('[data-track-count="accordionSection"]').length
|
22
20
|
case isNewBrowsePage():
|
23
21
|
return document.querySelectorAll('[data-track-count="cardList"]').length
|
24
22
|
case isMainstreamBrowsePage():
|
@@ -53,7 +51,6 @@
|
|
53
51
|
case isDocumentCollectionPage():
|
54
52
|
return document.querySelectorAll('.document-collection .group-document-list li a').length
|
55
53
|
case isNewBrowsePageLevelTwo():
|
56
|
-
case isCostOfLivingHub():
|
57
54
|
return document.querySelectorAll('[data-track-count="contentLink"]').length
|
58
55
|
case isNewBrowsePage():
|
59
56
|
return document.querySelectorAll('[data-track-count="cardLink"]').length
|
@@ -111,11 +108,6 @@
|
|
111
108
|
getMetaAttribute(metaNavigationTypeSelector) === 'browse level 2'
|
112
109
|
}
|
113
110
|
|
114
|
-
function isCostOfLivingHub () {
|
115
|
-
return getMetaAttribute(metaApplicationSelector) === 'collections' &&
|
116
|
-
getMetaAttribute(metaNavigationTypeSelector) === 'cost of living hub'
|
117
|
-
}
|
118
|
-
|
119
111
|
function isNewBrowsePage () {
|
120
112
|
return getMetaAttribute(metaApplicationSelector) === 'collections' &&
|
121
113
|
(getMetaAttribute(metaNavigationTypeSelector) === 'browse level 0' ||
|
data/config/locales/en.yml
CHANGED
@@ -230,8 +230,8 @@ en:
|
|
230
230
|
navigation_search_heading: Search and popular pages
|
231
231
|
navigation_search_subheading: Search
|
232
232
|
popular_links:
|
233
|
-
- label:
|
234
|
-
href: "/
|
233
|
+
- label: Get support with the cost of living
|
234
|
+
href: "/cost-of-living"
|
235
235
|
- label: Find out about the Energy Bills Support Scheme
|
236
236
|
href: "/guidance/getting-the-energy-bills-support-scheme-discount"
|
237
237
|
- label: Find a job
|