govuk_publishing_components 9.12.0 → 9.12.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: c4ed7953add55e8144b179cbc8c68545414ba71cba0a0330be4648ec5a7899c6
|
4
|
+
data.tar.gz: 2755094b499750fc699dca02c7be6217b891aedd1851eeac198baf79194e5817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70a8852b38baad3e38dc41eb9ed94d7ab16274ca1c64b2676cfa54c35f7742601cbef6ccfbd82bc4045f74f9ceaaa4740cc63f9131a64319301441504c98d08b
|
7
|
+
data.tar.gz: 87569831dbbf21b48a5c46b5a021febe3baeb86f5dc31a9eb6258663e8e5b257206be5e8417dad1aa6dfb21c2bd5b619355976786e2843599b1a58845c3b82cf
|
@@ -8,7 +8,11 @@ module GovukPublishingComponents
|
|
8
8
|
# @param request_path `request.path`
|
9
9
|
def initialize(content_item, request_path)
|
10
10
|
@content_item = content_item
|
11
|
-
@request_path = request_path
|
11
|
+
@request_path = simple_smart_answer? ? content_item['base_path'] : request_path
|
12
|
+
end
|
13
|
+
|
14
|
+
def simple_smart_answer?
|
15
|
+
content_item['document_type'] === "simple_smart_answer"
|
12
16
|
end
|
13
17
|
|
14
18
|
def taxonomy_sidebar
|
@@ -27,7 +27,7 @@ module GovukPublishingComponents
|
|
27
27
|
|
28
28
|
def add_core_tags(meta_tags)
|
29
29
|
meta_tags["govuk:format"] = content_item[:document_type] if content_item[:document_type]
|
30
|
-
meta_tags["govuk:publishing-
|
30
|
+
meta_tags["govuk:publishing-application"] = content_item[:publishing_app] if content_item[:publishing_app]
|
31
31
|
meta_tags["govuk:schema-name"] = content_item[:schema_name] if content_item[:schema_name]
|
32
32
|
|
33
33
|
user_journey_stage = content_item[:user_journey_document_supertype]
|
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: 9.12.
|
4
|
+
version: 9.12.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: 2018-08-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|