govuk_publishing_components 9.3.5 → 9.3.6
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: 91608383235d300d56657df62187bb825665dc99cdaacfbcb12591f111cc0600
|
4
|
+
data.tar.gz: d1d0957629c575a9401e5d2af03910f39e357dc915eeb2a8083e42a398e1b908
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b0856a83b0b663dfe443ce02a6f2a910802119b48bf3d7ce9246aa9db8df1eafe2caa47358dbbc60758d383df036382e3623141d79ff7c7bfd4789366bc9163
|
7
|
+
data.tar.gz: 4fd0e833b724f73ac432c118c96b753f8130c305f41c014b34cbe8742ae35d981c902fe110ed4235a7f239e52d32da5ffcd40934649cbdfe1a990b90cbae81fc
|
@@ -26,6 +26,14 @@ examples:
|
|
26
26
|
image_alt: "some meaningful alt text please"
|
27
27
|
heading_text: "I am a heading level 3"
|
28
28
|
heading_level: 3
|
29
|
+
without_a_heading:
|
30
|
+
description: The heading tag can be removed if the heading_level parameter is passed as 0.
|
31
|
+
data:
|
32
|
+
href: "/really-not-a-page"
|
33
|
+
image_src: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/feature/image/62756/s300_courts-of-justice.JPG"
|
34
|
+
image_alt: "some meaningful alt text please"
|
35
|
+
heading_text: "I am not a heading"
|
36
|
+
heading_level: 0
|
29
37
|
with_more_information:
|
30
38
|
data:
|
31
39
|
href: "/also-not-a-page"
|
@@ -16,7 +16,7 @@ module GovukPublishingComponents
|
|
16
16
|
@description = local_assigns[:description]
|
17
17
|
@large = local_assigns[:large]
|
18
18
|
@heading_text = local_assigns[:heading_text]
|
19
|
-
@heading_level = local_assigns[:heading_level]
|
19
|
+
@heading_level = local_assigns[:heading_level] || 2
|
20
20
|
@extra_links_no_indent = local_assigns[:extra_links_no_indent]
|
21
21
|
@metadata = local_assigns[:metadata]
|
22
22
|
end
|
@@ -45,7 +45,7 @@ module GovukPublishingComponents
|
|
45
45
|
|
46
46
|
def heading_tag
|
47
47
|
return "h#{@heading_level}" if [1, 2, 3, 4, 5, 6].include? @heading_level
|
48
|
-
"
|
48
|
+
return "span" if @heading_level.zero?
|
49
49
|
end
|
50
50
|
|
51
51
|
def description
|
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.3.
|
4
|
+
version: 9.3.6
|
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-06-
|
11
|
+
date: 2018-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|