content_block_tools 0.13.0 → 0.14.0
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: 7c35f73a3b07fb8b012edb15983ee33d887d6210983da08260ef5aa4ee179602
|
4
|
+
data.tar.gz: 7957496b23bb4abf3631ed7119bf389c62f545d03e16caf805072c485baf0e7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eb65abd8380bcf954c049343336d5ad9aa964c19fec7587c4769fe741e82777f7127a99540c1cf884a889ff4d72a68ecc52a4f8e4510c93a13f9a728f6ad6bf
|
7
|
+
data.tar.gz: 79fa8d0a4b48ef725ebade643c9556422b0dac61874aed1ce9323fbf258f8622c0cdcd40874876f0ceb3f6447976b2bac3319ed97e5f2e1d6d757b8d1036a9bb
|
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.14.0
|
11
|
+
|
12
|
+
- Update telephone to support simple opening hours ([71](https://github.com/alphagov/govuk_content_block_tools/pull/70))
|
13
|
+
|
10
14
|
## 0.13.0
|
11
15
|
|
12
16
|
- Rename Contact Form to Contact Link ([70](https://github.com/alphagov/govuk_content_block_tools/pull/70))
|
@@ -14,7 +14,7 @@ module ContentBlockTools
|
|
14
14
|
concat number_list
|
15
15
|
concat video_relay_service
|
16
16
|
concat bsl_details
|
17
|
-
concat
|
17
|
+
concat opening_hours
|
18
18
|
concat call_charges_link
|
19
19
|
end
|
20
20
|
end
|
@@ -71,12 +71,10 @@ module ContentBlockTools
|
|
71
71
|
render_govspeak(bsl_guidance[:value], root_class: "govuk-!-margin-bottom-0") if bsl_guidance[:show]
|
72
72
|
end
|
73
73
|
|
74
|
-
def
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
end
|
79
|
-
end
|
74
|
+
def opening_hours
|
75
|
+
opening_hours = item[:opening_hours] || {}
|
76
|
+
|
77
|
+
render_govspeak(opening_hours[:opening_hours], root_class: "govuk-!-margin-bottom-0") if opening_hours[:show_opening_hours]
|
80
78
|
end
|
81
79
|
|
82
80
|
def opening_hours_list_item(item)
|