govuk_publishing_components 28.2.0 → 28.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js +2 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +22 -22
- data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +9 -5
- data/app/assets/javascripts/govuk_publishing_components/analytics/track-click.js +4 -3
- data/app/assets/javascripts/govuk_publishing_components/analytics/track-select-change.js +4 -3
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +21 -291
- data/app/assets/javascripts/govuk_publishing_components/components/button.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/character-count.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +1 -2
- data/app/assets/javascripts/govuk_publishing_components/components/details.js +3 -4
- data/app/assets/javascripts/govuk_publishing_components/components/error-summary.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/layout-header.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/radio.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/skip-link.js +5 -0
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +40 -37
- data/app/assets/javascripts/govuk_publishing_components/components/tabs.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/barchart-enhancement.js +4 -3
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +8 -10
- data/app/assets/javascripts/govuk_publishing_components/lib/initial-focus.js +4 -3
- data/app/assets/javascripts/govuk_publishing_components/lib/toggle-input-class-on-focus.js +4 -3
- data/app/assets/javascripts/govuk_publishing_components/lib/toggle.js +4 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -329
- data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +5 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +67 -21
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +95 -56
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss +6 -17
- data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +0 -9
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +30 -15
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_big_number.html.erb +12 -8
- data/app/views/govuk_publishing_components/components/_button.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_character_count.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +0 -4
- data/app/views/govuk_publishing_components/components/_details.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_error_message.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_error_summary.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_heading.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_hint.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_inset_text.html.erb +12 -1
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +22 -18
- data/app/views/govuk_publishing_components/components/_list.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_search.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_select.html.erb +19 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +25 -22
- data/app/views/govuk_publishing_components/components/_skip_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_textarea.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_title.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/docs/accordion.yml +2 -97
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +0 -47
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/inset_text.yml +6 -0
- data/app/views/govuk_publishing_components/components/docs/select.yml +12 -0
- data/app/views/govuk_publishing_components/components/docs/share_links.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +13 -13
- data/app/views/govuk_publishing_components/components/docs/tabs.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/textarea.yml +1 -1
- data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +26 -0
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +14 -8
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +11 -11
- data/config/locales/ar.yml +2 -0
- data/config/locales/az.yml +2 -1
- data/config/locales/be.yml +2 -0
- data/config/locales/bg.yml +2 -0
- data/config/locales/bn.yml +2 -0
- data/config/locales/cs.yml +2 -0
- data/config/locales/cy.yml +2 -0
- data/config/locales/da.yml +2 -0
- data/config/locales/de.yml +2 -0
- data/config/locales/dr.yml +2 -0
- data/config/locales/el.yml +2 -0
- data/config/locales/en.yml +0 -4
- data/config/locales/es-419.yml +2 -0
- data/config/locales/es.yml +2 -0
- data/config/locales/et.yml +2 -0
- data/config/locales/fa.yml +2 -1
- data/config/locales/fi.yml +2 -0
- data/config/locales/fr.yml +2 -0
- data/config/locales/gd.yml +2 -0
- data/config/locales/gu.yml +2 -0
- data/config/locales/he.yml +2 -0
- data/config/locales/hi.yml +2 -0
- data/config/locales/hr.yml +2 -0
- data/config/locales/hu.yml +2 -0
- data/config/locales/hy.yml +2 -0
- data/config/locales/id.yml +2 -1
- data/config/locales/is.yml +2 -0
- data/config/locales/it.yml +2 -0
- data/config/locales/ja.yml +2 -1
- data/config/locales/ka.yml +2 -0
- data/config/locales/kk.yml +2 -0
- data/config/locales/ko.yml +2 -1
- data/config/locales/lt.yml +2 -0
- data/config/locales/lv.yml +2 -0
- data/config/locales/ms.yml +2 -1
- data/config/locales/mt.yml +2 -0
- data/config/locales/nl.yml +2 -0
- data/config/locales/no.yml +2 -0
- data/config/locales/pa-pk.yml +2 -0
- data/config/locales/pa.yml +2 -0
- data/config/locales/pl.yml +2 -0
- data/config/locales/ps.yml +2 -0
- data/config/locales/pt.yml +2 -0
- data/config/locales/ro.yml +2 -0
- data/config/locales/ru.yml +2 -0
- data/config/locales/si.yml +2 -0
- data/config/locales/sk.yml +2 -0
- data/config/locales/sl.yml +2 -0
- data/config/locales/so.yml +2 -0
- data/config/locales/sq.yml +2 -0
- data/config/locales/sr.yml +2 -1
- data/config/locales/sv.yml +2 -0
- data/config/locales/sw.yml +2 -0
- data/config/locales/ta.yml +2 -0
- data/config/locales/th.yml +2 -1
- data/config/locales/tk.yml +2 -0
- data/config/locales/tr.yml +2 -0
- data/config/locales/uk.yml +2 -0
- data/config/locales/ur.yml +2 -0
- data/config/locales/uz.yml +2 -0
- data/config/locales/vi.yml +2 -1
- data/config/locales/zh-hk.yml +2 -1
- data/config/locales/zh-tw.yml +2 -1
- data/config/locales/zh.yml +2 -1
- data/lib/govuk_publishing_components/presenters/big_number_helper.rb +30 -0
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +0 -38
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/lib/govuk_publishing_components.rb +1 -0
- data/node_modules/govuk-frontend/govuk/all.js +294 -76
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +274 -99
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +169 -65
- data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +37 -5
- data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +4 -4
- data/node_modules/govuk-frontend/govuk/components/button/button.js +2 -2
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +3 -3
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +15 -2
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +8 -10
- data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +52 -15
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +0 -2
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +31 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +25 -25
- data/node_modules/govuk-frontend/govuk/components/details/details.js +2 -2
- data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +8 -8
- data/node_modules/govuk-frontend/govuk/components/error-message/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +24 -3
- data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +25 -16
- data/node_modules/govuk-frontend/govuk/components/error-summary/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/template.njk +2 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +4 -4
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +3 -37
- data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +119 -15
- data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/footer/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +10 -4
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +11 -11
- data/node_modules/govuk-frontend/govuk/components/header/header.js +4 -4
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +4 -3
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +1 -3
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +40 -40
- data/node_modules/govuk-frontend/govuk/components/input/template.njk +4 -3
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +499 -2
- data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +0 -8
- data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +44 -45
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +4 -4
- data/node_modules/govuk-frontend/govuk/components/radios/template.njk +2 -9
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +6 -1
- data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +13 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +9 -9
- data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +1108 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +20 -23
- data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +86 -1
- data/node_modules/govuk-frontend/govuk/components/summary-list/template.njk +1 -4
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +2 -2
- data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +2 -2
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +0 -5
- data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +4 -4
- data/node_modules/govuk-frontend/govuk/core/_all.scss +0 -1
- data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +0 -6
- data/node_modules/govuk-frontend/govuk/core/_links.scss +0 -6
- data/node_modules/govuk-frontend/govuk/core/_lists.scss +0 -6
- data/node_modules/govuk-frontend/govuk/core/_section-break.scss +0 -6
- data/node_modules/govuk-frontend/govuk/core/_typography.scss +0 -6
- data/node_modules/govuk-frontend/govuk/objects/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +15 -30
- data/node_modules/govuk-frontend/govuk/{core → objects}/_template.scss +1 -5
- data/node_modules/govuk-frontend/govuk/overrides/_display.scss +0 -6
- data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +0 -6
- data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss +0 -6
- data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +0 -6
- data/node_modules/govuk-frontend/govuk/overrides/_width.scss +0 -6
- data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +3 -0
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +0 -10
- data/node_modules/govuk-frontend/govuk/tools/_all.scss +0 -1
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +11 -16
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_covid_cta.html.erb +0 -27
- data/node_modules/govuk-frontend/govuk/tools/_iff.scss +0 -17
data/config/locales/ms.yml
CHANGED
@@ -15,7 +15,6 @@ ms:
|
|
15
15
|
opendocument_html: Fail ini terdapat dalam format <a href='https://www.gov.uk/guidance/using-open-document-formats-odf-in-your-organisation' target=%{target} class='govuk-link'>OpenDocument</a>
|
16
16
|
order_a_copy: Pesan satu salinan
|
17
17
|
page:
|
18
|
-
one: 1 halaman
|
19
18
|
other: "%{count} halaman"
|
20
19
|
reference: 'Ruj: %{reference}'
|
21
20
|
request_format_cta: Minta format yang boleh diakses.
|
@@ -79,6 +78,8 @@ ms:
|
|
79
78
|
what_doing: Apa yang anda buat?
|
80
79
|
what_wrong: Apa yang salah?
|
81
80
|
'yes': Ya
|
81
|
+
intervention:
|
82
|
+
accessible_link_text_suffix:
|
82
83
|
layout_footer:
|
83
84
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
84
85
|
licence_html: Semua kandungan tersedia di bawah <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license"> Lesen Terbuka Kerajaan v3.0 </a>, kecuali jika dinyatakan sebaliknya
|
data/config/locales/mt.yml
CHANGED
@@ -81,6 +81,8 @@ mt:
|
|
81
81
|
what_doing: X'kont qed tagħmel?
|
82
82
|
what_wrong: X'mar ħażin?
|
83
83
|
'yes': Iva
|
84
|
+
intervention:
|
85
|
+
accessible_link_text_suffix:
|
84
86
|
layout_footer:
|
85
87
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
86
88
|
licence_html: Il-kontenut huwa kollu disponibbli taħt <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Liċenzja ta' Gvern miftuħ v3.0</a>, except where otherwise stated
|
data/config/locales/nl.yml
CHANGED
@@ -79,6 +79,8 @@ nl:
|
|
79
79
|
what_doing: Wat was u aan het doen?
|
80
80
|
what_wrong: Wat ging er mis?
|
81
81
|
'yes': Ja
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
84
86
|
licence_html: Alle inhoud is beschikbaar onder de <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Overheidslicentie v3.0</a>, behalve waar anders vermeld
|
data/config/locales/no.yml
CHANGED
@@ -79,6 +79,8 @@
|
|
79
79
|
what_doing: Hva gjorde du?
|
80
80
|
what_wrong: Hva gikk galt?
|
81
81
|
'yes': Ja
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
84
86
|
licence_html: Alt innhold er tilgjengelig under<a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, med mindre annet er angitt
|
data/config/locales/pa-pk.yml
CHANGED
@@ -75,6 +75,8 @@ pa-pk:
|
|
75
75
|
what_doing: تُسی کیہ کر رئے سو
|
76
76
|
what_wrong: کیہ غلط ہویا اے
|
77
77
|
'yes': جی ہاں
|
78
|
+
intervention:
|
79
|
+
accessible_link_text_suffix:
|
78
80
|
layout_footer:
|
79
81
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/ information-management/re-using-public-sector-information/copyright-and-re-use/ /crown-copyright/">© کاپی کراؤن رائٹ</a>
|
80
82
|
licence_html: سارا مواد ایندے تھلے موجود اے <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">اوپن گورنمنٹ لائسنس v3.0</a>, ایہ قبول کر لو جیڑا ایس توں علاوہ اے
|
data/config/locales/pa.yml
CHANGED
@@ -79,6 +79,8 @@ pa:
|
|
79
79
|
what_doing: ਤੁਸੀਂ ਕੀ ਕਰ ਰਹੇ ਸੀ?
|
80
80
|
what_wrong: ਕੀ ਗਲਤ ਹੋਇਆ?
|
81
81
|
'yes': ਹਾਂ
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© ਕ੍ਰਾਊਨ ਕਾਪੀਰਾਈਟ</a>
|
84
86
|
licence_html: ਸਾਰੀ ਸਮਗਰੀ <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">ਓਪਨ ਗਵਰਨਮੈਂਟ ਲਾਇਸੈਂਸ v3.0</a>, ਦੇ ਅਧੀਨ ਸਾਰੀ ਸਮਗਰੀ ਉਪਲਬਧ ਹੈ ਸਿਵਾਏ ਇਸਦੇ ਜਿੱਥੇ ਹੋਰ ਨਹੀਂ ਕਿਹਾ ਗਿਆ ਹੈ
|
data/config/locales/pl.yml
CHANGED
@@ -83,6 +83,8 @@ pl:
|
|
83
83
|
what_doing: Co robiłeś?
|
84
84
|
what_wrong: Co poszło nie tak?
|
85
85
|
'yes': Tak
|
86
|
+
intervention:
|
87
|
+
accessible_link_text_suffix:
|
86
88
|
layout_footer:
|
87
89
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Właścicielem praw autorskich jest Korona</a>
|
88
90
|
licence_html: Cała zawartość objęta jest licencją <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, chyba że zaznaczono inaczej
|
data/config/locales/ps.yml
CHANGED
@@ -76,6 +76,8 @@ ps:
|
|
76
76
|
what_doing: ته څه کوې؟
|
77
77
|
what_wrong: څه غلط شول؟
|
78
78
|
'yes': هو
|
79
|
+
intervention:
|
80
|
+
accessible_link_text_suffix:
|
79
81
|
layout_footer:
|
80
82
|
copyright_html: <a class = "govuk-footer__link govuk-footer__copyright-logo" href = "http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use /crown-copyright/"> rown د تاج کاپي حق </a>
|
81
83
|
licence_html: ټول مینځپانګه د <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license"> لاندې خلاصې دي د حکومت جواز v3.0 </a> ، پرته لدې چیرې چې بل ډول ویل شوي
|
data/config/locales/pt.yml
CHANGED
@@ -79,6 +79,8 @@ pt:
|
|
79
79
|
what_doing: O que estava a fazer?
|
80
80
|
what_wrong: O que correu mal?
|
81
81
|
'yes': Sim
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Direitos de autor da Coroa</a>
|
84
86
|
licence_html: Todo o conteúdo está disponível ao abrigo da <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, exceto quando indicado em contrário
|
data/config/locales/ro.yml
CHANGED
@@ -80,6 +80,8 @@ ro:
|
|
80
80
|
what_doing: Ce făceați?
|
81
81
|
what_wrong: Ce eroare a survenit?
|
82
82
|
'yes': Da
|
83
|
+
intervention:
|
84
|
+
accessible_link_text_suffix:
|
83
85
|
layout_footer:
|
84
86
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
85
87
|
licence_html: Tot conținutul este disponibil conform <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, cu excepția cazurilor în care s-a specificat altceva
|
data/config/locales/ru.yml
CHANGED
@@ -83,6 +83,8 @@ ru:
|
|
83
83
|
what_doing: Что вы делали?
|
84
84
|
what_wrong: Что пошло не так?
|
85
85
|
'yes': Да
|
86
|
+
intervention:
|
87
|
+
accessible_link_text_suffix:
|
86
88
|
layout_footer:
|
87
89
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Авторское право Британского содружества наций</a>
|
88
90
|
licence_html: Все содержимое доступно на <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license"> Открытой государственной лицензии v3.0</a>, если не указано иное
|
data/config/locales/si.yml
CHANGED
@@ -79,6 +79,8 @@ si:
|
|
79
79
|
what_doing: ඔබ කුමක් ද කරමින් සිටියේ?
|
80
80
|
what_wrong: වැරදුණේ කුමක්ද?
|
81
81
|
'yes': ඔව්
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© රාජ්ය කතුහිමිකම</a>
|
84
86
|
licence_html: සියලු අන්තගතයන් වෙනත් ආකාරයකින් සඳහන් කර තිබුණොත් මිසක <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">රජයේ විවෘත බලපත්ර v3.0</a>, යටතේ ලබා ගත හැකිය
|
data/config/locales/sk.yml
CHANGED
@@ -84,6 +84,8 @@ sk:
|
|
84
84
|
what_doing: Čo ste robili?
|
85
85
|
what_wrong: Čo sa pokazilo?
|
86
86
|
'yes': Áno
|
87
|
+
intervention:
|
88
|
+
accessible_link_text_suffix:
|
87
89
|
layout_footer:
|
88
90
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Korunné autorské práva</a>
|
89
91
|
licence_html: Všetok obsah je k dispozícii pod <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">licenciou Open Government Licence v3.0</a>, okrem prípadov, keď je uvedené inak
|
data/config/locales/sl.yml
CHANGED
@@ -86,6 +86,8 @@ sl:
|
|
86
86
|
what_doing: Kaj ste počeli?
|
87
87
|
what_wrong: Kaj je šlo narobe?
|
88
88
|
'yes': Da
|
89
|
+
intervention:
|
90
|
+
accessible_link_text_suffix:
|
89
91
|
layout_footer:
|
90
92
|
copyright_html: <a class="govnu-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Avtorske pravice krone</a>
|
91
93
|
licence_html: Vsa vsebina je na voljo na <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Odprto vladno dovoljenje v3.0</a>, razen kjer je zapisano drugače
|
data/config/locales/so.yml
CHANGED
@@ -79,6 +79,8 @@ so:
|
|
79
79
|
what_doing: Maxaad doonaysaa inuu laguu qabto?
|
80
80
|
what_wrong: Maxaa qaldamay?
|
81
81
|
'yes': Haa
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
84
86
|
licence_html: Dhamaan qaybaha waxa laga heli karaa <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated
|
data/config/locales/sq.yml
CHANGED
@@ -79,6 +79,8 @@ sq:
|
|
79
79
|
what_doing: Cfare po bënit?
|
80
80
|
what_wrong: Çfarë shkoi keq?
|
81
81
|
'yes': Po
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown e drejta e autorit</a>
|
84
86
|
licence_html: E gjithë përmbajtja është në dispozicion nën <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Licencën e Qeverisë së Hapur v3.0</a>, përveç rasteve kur thuhet ndryshe
|
data/config/locales/sr.yml
CHANGED
@@ -16,7 +16,6 @@ sr:
|
|
16
16
|
order_a_copy: Zatražite primerak
|
17
17
|
page:
|
18
18
|
few:
|
19
|
-
many:
|
20
19
|
one: 1 stranica
|
21
20
|
other: "%{count} str."
|
22
21
|
reference: 'Ref: %{reference}'
|
@@ -81,6 +80,8 @@ sr:
|
|
81
80
|
what_doing: Šta ste radili?
|
82
81
|
what_wrong: Koji problem se javio?
|
83
82
|
'yes': Da
|
83
|
+
intervention:
|
84
|
+
accessible_link_text_suffix:
|
84
85
|
layout_footer:
|
85
86
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
86
87
|
licence_html: Sav sadržaj je dostupan pod licencom <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, izuzev ako je drugačije naznačeno
|
data/config/locales/sv.yml
CHANGED
@@ -79,6 +79,8 @@ sv:
|
|
79
79
|
what_doing: Vad gjorde du?
|
80
80
|
what_wrong: Vad gick fel?
|
81
81
|
'yes': Ja
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
84
86
|
licence_html: Allt innehåll är tillgängligt enligt <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, om inget annat anges
|
data/config/locales/sw.yml
CHANGED
@@ -79,6 +79,8 @@ sw:
|
|
79
79
|
what_doing: Ulikuwa unafanya nini?
|
80
80
|
what_wrong: Tatizo lipi lililotokea?
|
81
81
|
'yes': Ndiyo
|
82
|
+
intervention:
|
83
|
+
accessible_link_text_suffix:
|
82
84
|
layout_footer:
|
83
85
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Hakimiliki ya Crown</a>
|
84
86
|
licence_html: Maudhui yote yanapatikana chini ya <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, isipokuwa ibainishwe vinginevyo
|
data/config/locales/ta.yml
CHANGED
@@ -80,6 +80,8 @@ ta:
|
|
80
80
|
what_doing: நீங்கள் என்ன செய்து கொண்டிருந்தீர்கள்?
|
81
81
|
what_wrong: என்ன தவறு நடந்தது?
|
82
82
|
'yes': ஆம்
|
83
|
+
intervention:
|
84
|
+
accessible_link_text_suffix:
|
83
85
|
layout_footer:
|
84
86
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown காப்புரிமை</a>
|
85
87
|
licence_html: வேறுவகையில் குறிப்பிடப்படாதவரை அனைத்து உள்ளடக்கமும் <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>-ன்கீழ் கிடைக்கிறது.
|
data/config/locales/th.yml
CHANGED
@@ -15,7 +15,6 @@ th:
|
|
15
15
|
opendocument_html: ไฟล์นี้อยู่ในรูปแบบ <a href='https://www.gov.uk/guidance/using-open-document-formats-odf-in-your-organisation' target=%{target} class='govuk-link'>OpenDocument</a>
|
16
16
|
order_a_copy: สั่งซื้อสำเนา
|
17
17
|
page:
|
18
|
-
one: 1 หน้า
|
19
18
|
other: "%{count} หน้า"
|
20
19
|
reference: 'อ้างอิง: %{reference}'
|
21
20
|
request_format_cta: ขอรูปแบบไฟล์ที่สามารถเข้าถึงได้
|
@@ -78,6 +77,8 @@ th:
|
|
78
77
|
what_doing: คุณทำอะไรอยู่ในขณะนั้น
|
79
78
|
what_wrong: มีสิ่งใดผิดปกติ
|
80
79
|
'yes': ใช่
|
80
|
+
intervention:
|
81
|
+
accessible_link_text_suffix:
|
81
82
|
layout_footer:
|
82
83
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">ลิขสิทธิ์ © Crown</a>
|
83
84
|
licence_html: เนื้อหาทั้งหมดอยู่ภายใต้สัญญาอนุญาต <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government License v3.0</a> ยกเว้นจะระบุไว้เป็นอย่างอื่น
|
data/config/locales/tk.yml
CHANGED
@@ -80,6 +80,8 @@ tk:
|
|
80
80
|
what_doing: Näme edýärdiňiz?
|
81
81
|
what_wrong: Näme nädogry boldy?
|
82
82
|
'yes': Hawa
|
83
|
+
intervention:
|
84
|
+
accessible_link_text_suffix:
|
83
85
|
layout_footer:
|
84
86
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown awtorlyk hukugy</a>
|
85
87
|
licence_html: Ähli mazmun <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Açyk hökümet ygtyýarnamasy v3.0-da görkezilen</a>, eger başgaça bellenilmedik bolsa
|
data/config/locales/tr.yml
CHANGED
@@ -80,6 +80,8 @@ tr:
|
|
80
80
|
what_doing: Ne yapmaktaydınız?
|
81
81
|
what_wrong: Nasıl bir sorun oldu?
|
82
82
|
'yes': Evet
|
83
|
+
intervention:
|
84
|
+
accessible_link_text_suffix:
|
83
85
|
layout_footer:
|
84
86
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
85
87
|
licence_html: Aksi ifade edilmedikçe tüm içeriğe <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a> adresinden erişilebilir
|
data/config/locales/uk.yml
CHANGED
@@ -86,6 +86,8 @@ uk:
|
|
86
86
|
what_doing: Що ви робили?
|
87
87
|
what_wrong: Що пішло не так?
|
88
88
|
'yes': Так
|
89
|
+
intervention:
|
90
|
+
accessible_link_text_suffix:
|
89
91
|
layout_footer:
|
90
92
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
91
93
|
licence_html: Весь вміст доступний за <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Відкритою державною ліцензією v3.0</a>, якщо не зазначено інше
|
data/config/locales/ur.yml
CHANGED
@@ -76,6 +76,8 @@ ur:
|
|
76
76
|
what_doing: آپ کیا کر رہے تھے؟
|
77
77
|
what_wrong: کیا غلط ہوا؟
|
78
78
|
'yes': جی ہاں
|
79
|
+
intervention:
|
80
|
+
accessible_link_text_suffix:
|
79
81
|
layout_footer:
|
80
82
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown کاپی رائٹ</a>
|
81
83
|
licence_html: سوائے ان کے جنہیں بصورت دیگر بیان کیا گیا ہے، <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a> کے تحت تمام مواد دستیاب ہے
|
data/config/locales/uz.yml
CHANGED
@@ -81,6 +81,8 @@ uz:
|
|
81
81
|
what_doing: Сиз нима қилаётган эдингиз?
|
82
82
|
what_wrong: Қандай хатолик бўлди?
|
83
83
|
'yes': Ҳа
|
84
|
+
intervention:
|
85
|
+
accessible_link_text_suffix:
|
84
86
|
layout_footer:
|
85
87
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Британия миллатлар ҳамдўстлигининг муаллифлик ҳуқуқи</a>
|
86
88
|
licence_html: Бутун таркиб <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">“Очиқ давлат лицензияси, версия 3.0” дастурида эришимли</a>, агар бошқаси кўрсатилмаган бўлса
|
data/config/locales/vi.yml
CHANGED
@@ -15,7 +15,6 @@ vi:
|
|
15
15
|
opendocument_html: Tệp này có định dạng <a href='https://www.gov.uk/guidance/using-open-document-formats-odf-in-your-organisation' target=%{target} class='govuk-link'>OpenDocument</a>
|
16
16
|
order_a_copy: Đặt hàng một bản sao
|
17
17
|
page:
|
18
|
-
one: 1 trang
|
19
18
|
other: "%{count} trang"
|
20
19
|
reference: 'Tham khảo: %{reference}'
|
21
20
|
request_format_cta: Yêu cầu một định dạng có thể truy cập.
|
@@ -79,6 +78,8 @@ vi:
|
|
79
78
|
what_doing: Bạn đang làm gì?
|
80
79
|
what_wrong: Sự cố gì đã xảy ra?
|
81
80
|
'yes': Có
|
81
|
+
intervention:
|
82
|
+
accessible_link_text_suffix:
|
82
83
|
layout_footer:
|
83
84
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Bản quyền Crown</a>
|
84
85
|
licence_html: Tất cả nội dung đều có sẵn theo <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Giấy phép Chính phủ Mở pb3.0</a>, trừ khi có quy định khác
|
data/config/locales/zh-hk.yml
CHANGED
@@ -15,7 +15,6 @@ zh-hk:
|
|
15
15
|
opendocument_html: 此文檔為 <a href='https://www.gov.uk/guidance/using-open-document-formats-odf-in-your-organisation' target=%{target} class='govuk-link'>OpenDocument</a> 格式
|
16
16
|
order_a_copy: 索取副本
|
17
17
|
page:
|
18
|
-
one: 1 頁
|
19
18
|
other: "%{count} 頁"
|
20
19
|
reference: 'Ref: %{reference}'
|
21
20
|
request_format_cta: 索取可讀取之格式。
|
@@ -78,6 +77,8 @@ zh-hk:
|
|
78
77
|
what_doing: 您剛才在做什麼?
|
79
78
|
what_wrong: 出現什麼錯誤?
|
80
79
|
'yes': 是
|
80
|
+
intervention:
|
81
|
+
accessible_link_text_suffix:
|
81
82
|
layout_footer:
|
82
83
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown 版權所有</a>
|
83
84
|
licence_html: 除另有說明者外,所有內容均可在 <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>獲取。
|
data/config/locales/zh-tw.yml
CHANGED
@@ -15,7 +15,6 @@ zh-tw:
|
|
15
15
|
opendocument_html: 本檔案於 <a href='https://www.gov.uk/guidance/using-open-document-formats-odf-in-your-organisation' target=%{target} class='govuk-link'>開放文件</a> 格式
|
16
16
|
order_a_copy: 預定副本
|
17
17
|
page:
|
18
|
-
one: 一頁
|
19
18
|
other: "%{count} 頁面"
|
20
19
|
reference: 參考:%{reference}
|
21
20
|
request_format_cta: 請求可參閱格式。
|
@@ -78,6 +77,8 @@ zh-tw:
|
|
78
77
|
what_doing: 你做了什麼?
|
79
78
|
what_wrong: 哪出錯了?
|
80
79
|
'yes': 是的
|
80
|
+
intervention:
|
81
|
+
accessible_link_text_suffix:
|
81
82
|
layout_footer:
|
82
83
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
|
83
84
|
licence_html: 所有內容都具 <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">英國政府開放授權v3.0</a>,除非另有說明
|
data/config/locales/zh.yml
CHANGED
@@ -15,7 +15,6 @@ zh:
|
|
15
15
|
opendocument_html: 本文件是 <a href='https://www.gov.uk/guidance/using-open-document-formats-odf-in-your-organisation' target=%{target} class='govuk-link'>开放式文本</a> 格式
|
16
16
|
order_a_copy: 订购副本
|
17
17
|
page:
|
18
|
-
one: 1页
|
19
18
|
other: "%{count} 页"
|
20
19
|
reference: 参考号:%{reference}
|
21
20
|
request_format_cta: 申请可访问格式。
|
@@ -78,6 +77,8 @@ zh:
|
|
78
77
|
what_doing: 您在干什么?
|
79
78
|
what_wrong: 发生了哪些错误?
|
80
79
|
'yes': 是
|
80
|
+
intervention:
|
81
|
+
accessible_link_text_suffix:
|
81
82
|
layout_footer:
|
82
83
|
copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown版权所有</a>
|
83
84
|
licence_html: 除另有说明外,所有内容均可在 <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">开放政府许可证第3.0版</a>获取
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module GovukPublishingComponents
|
2
|
+
module Presenters
|
3
|
+
class BigNumberHelper
|
4
|
+
def initialize(local_assigns)
|
5
|
+
@label = local_assigns[:label]
|
6
|
+
@href = local_assigns[:href]
|
7
|
+
@number = local_assigns[:number] || nil
|
8
|
+
end
|
9
|
+
|
10
|
+
def value_classes
|
11
|
+
class_list = ["gem-c-big-number__value"]
|
12
|
+
|
13
|
+
if @label.nil? && @href
|
14
|
+
class_list << "gem-c-big-number__value--decorated"
|
15
|
+
end
|
16
|
+
|
17
|
+
class_list
|
18
|
+
end
|
19
|
+
|
20
|
+
# This function is to check for small symbols which alter how the number is rendered lightly
|
21
|
+
# We do this to account for small symbols awkwardly sitting above the baseline in our typeface and adjust them to sit at the baseline for the purpose of visual harmony
|
22
|
+
# Currently the only small symbol used with big numbers are pluses so they are specifically targetted in the below code
|
23
|
+
def number_has_plus_suffix?
|
24
|
+
if @number.is_a? String
|
25
|
+
@number.ends_with?("+")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -153,44 +153,6 @@ module GovukPublishingComponents
|
|
153
153
|
brexit_cta_taxon_allow_list?
|
154
154
|
end
|
155
155
|
|
156
|
-
def show_covid_booster_cta?
|
157
|
-
!covid_booster_cta_document_type_exempt? &&
|
158
|
-
!covid_booster_cta_taxon_exception_list?
|
159
|
-
end
|
160
|
-
|
161
|
-
def covid_booster_cta_document_type_exempt?
|
162
|
-
covid_booster_cta_document_type_exceptions.include?(content_item["document_type"])
|
163
|
-
end
|
164
|
-
|
165
|
-
def covid_booster_cta_document_type_exceptions
|
166
|
-
%w[
|
167
|
-
simple_smart_answer
|
168
|
-
smart_answer
|
169
|
-
step_by_step_nav
|
170
|
-
]
|
171
|
-
end
|
172
|
-
|
173
|
-
def covid_booster_cta_taxon_exception_list?
|
174
|
-
taxons = content_item.dig("links", "taxons").to_a
|
175
|
-
taxons.each do |taxon|
|
176
|
-
if covid_booster_cta_taxon_exception_list.include?(taxon["content_id"]) || parent_taxon_include?(taxon, covid_booster_cta_taxon_exception_list)
|
177
|
-
return true
|
178
|
-
end
|
179
|
-
end
|
180
|
-
false
|
181
|
-
end
|
182
|
-
|
183
|
-
def covid_booster_cta_taxon_exception_list
|
184
|
-
# Welfare > Death and benefits
|
185
|
-
# Life circumstances > Death and bereavement
|
186
|
-
# Life circumstances > Death registration disclosure
|
187
|
-
%w[
|
188
|
-
ac7b8472-5d09-4679-9551-87847b0ac827
|
189
|
-
0fffa994-b76d-4539-8bf9-2a6c6751580d
|
190
|
-
de978199-11e8-49b9-965e-4fa6a7ae79a8
|
191
|
-
]
|
192
|
-
end
|
193
|
-
|
194
156
|
def content_tagged_to_current_step_by_step?
|
195
157
|
# TODO: remove indirection here
|
196
158
|
step_nav_helper.show_header?
|
@@ -6,6 +6,7 @@ require "govuk_publishing_components/config"
|
|
6
6
|
require "govuk_publishing_components/engine"
|
7
7
|
require "govuk_publishing_components/presenters/shared_helper"
|
8
8
|
require "govuk_publishing_components/presenters/attachment"
|
9
|
+
require "govuk_publishing_components/presenters/big_number_helper"
|
9
10
|
require "govuk_publishing_components/presenters/breadcrumbs"
|
10
11
|
require "govuk_publishing_components/presenters/breadcrumb_selector"
|
11
12
|
require "govuk_publishing_components/presenters/button_helper"
|