content_block_tools 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef8e369276bd01a87c080d61127a7cc93f09f77a37ba0b60b6de826a6668143e
|
4
|
+
data.tar.gz: f009b4fdb80e917b8539bc636b0414f453b4236297ba41bd0fee1218825da004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e931a0effa4eca7897d14d05c39a3aabdfaf2a742a3fe1b933e6a9e112fd8ea315d42ff115ebc491de358d77e281abcabb0df5a2733a970d848fb863085fb3c9
|
7
|
+
data.tar.gz: a6ab3ea8acba0b9abaf68069bc6a7c5afe62ebb2ce9cea3cf85e9058308e7732bfbe283523c657a24972fa2be0e4eb76597401f99eaec735a57e299cadf6081d
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@
|
|
7
7
|
useful summary for people upgrading their application, not a replication
|
8
8
|
of the commit log.
|
9
9
|
|
10
|
+
## 0.6.4
|
11
|
+
|
12
|
+
- Fix rendering of block when UK call charges are not shown ([54](https://github.com/alphagov/govuk_content_block_tools/pull/54))
|
13
|
+
|
10
14
|
## 0.6.3
|
11
15
|
|
12
16
|
- Fix rendering telephone numbers and rendering individual nested fields ([53](https://github.com/alphagov/govuk_content_block_tools/pull/53))
|
@@ -25,11 +25,13 @@ module ContentBlockTools
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def call_charges_link
|
28
|
-
item[:show_uk_call_charges] == "true"
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
if item[:show_uk_call_charges] == "true"
|
29
|
+
content_tag(:p, class: "govuk-!-margin-0") do
|
30
|
+
concat content_tag(:a,
|
31
|
+
"Find out about call charges",
|
32
|
+
class: "govuk-link",
|
33
|
+
href: "https://www.gov.uk/call-charges")
|
34
|
+
end
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|