govuk_publishing_components 29.3.0 → 29.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +1 -0
  3. data/app/assets/stylesheets/component_guide/application.scss +1 -1
  4. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +2 -2
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +1 -1
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +2 -2
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +2 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +3 -3
  15. data/app/views/govuk_publishing_components/components/_intervention.html.erb +0 -2
  16. data/config/locales/ar.yml +1 -0
  17. data/config/locales/az.yml +1 -0
  18. data/config/locales/be.yml +1 -0
  19. data/config/locales/bg.yml +1 -0
  20. data/config/locales/bn.yml +1 -0
  21. data/config/locales/cs.yml +1 -0
  22. data/config/locales/cy.yml +1 -0
  23. data/config/locales/da.yml +1 -0
  24. data/config/locales/de.yml +1 -0
  25. data/config/locales/dr.yml +1 -0
  26. data/config/locales/el.yml +1 -0
  27. data/config/locales/en.yml +56 -3
  28. data/config/locales/es-419.yml +1 -0
  29. data/config/locales/es.yml +1 -0
  30. data/config/locales/et.yml +1 -0
  31. data/config/locales/fa.yml +1 -0
  32. data/config/locales/fi.yml +1 -0
  33. data/config/locales/fr.yml +1 -0
  34. data/config/locales/gd.yml +1 -0
  35. data/config/locales/gu.yml +1 -0
  36. data/config/locales/he.yml +1 -0
  37. data/config/locales/hi.yml +1 -0
  38. data/config/locales/hr.yml +1 -0
  39. data/config/locales/hu.yml +1 -0
  40. data/config/locales/hy.yml +1 -0
  41. data/config/locales/id.yml +1 -0
  42. data/config/locales/is.yml +1 -0
  43. data/config/locales/it.yml +1 -0
  44. data/config/locales/ja.yml +1 -0
  45. data/config/locales/ka.yml +1 -0
  46. data/config/locales/kk.yml +1 -0
  47. data/config/locales/ko.yml +1 -0
  48. data/config/locales/lt.yml +1 -0
  49. data/config/locales/lv.yml +1 -0
  50. data/config/locales/ms.yml +1 -0
  51. data/config/locales/mt.yml +1 -0
  52. data/config/locales/nl.yml +1 -0
  53. data/config/locales/no.yml +1 -0
  54. data/config/locales/pa-pk.yml +1 -0
  55. data/config/locales/pa.yml +1 -0
  56. data/config/locales/pl.yml +1 -0
  57. data/config/locales/ps.yml +1 -0
  58. data/config/locales/pt.yml +1 -0
  59. data/config/locales/ro.yml +1 -0
  60. data/config/locales/ru.yml +1 -0
  61. data/config/locales/si.yml +1 -0
  62. data/config/locales/sk.yml +1 -0
  63. data/config/locales/sl.yml +1 -0
  64. data/config/locales/so.yml +1 -0
  65. data/config/locales/sq.yml +1 -0
  66. data/config/locales/sr.yml +1 -0
  67. data/config/locales/sv.yml +1 -0
  68. data/config/locales/sw.yml +1 -0
  69. data/config/locales/ta.yml +1 -0
  70. data/config/locales/th.yml +1 -0
  71. data/config/locales/tk.yml +1 -0
  72. data/config/locales/tr.yml +1 -0
  73. data/config/locales/uk.yml +1 -0
  74. data/config/locales/ur.yml +1 -0
  75. data/config/locales/uz.yml +1 -0
  76. data/config/locales/vi.yml +1 -0
  77. data/config/locales/zh-hk.yml +1 -0
  78. data/config/locales/zh-tw.yml +1 -0
  79. data/config/locales/zh.yml +1 -0
  80. data/lib/govuk_publishing_components/presenters/attachment.rb +5 -2
  81. data/lib/govuk_publishing_components/presenters/meta_tags.rb +4 -2
  82. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +18 -289
  83. data/lib/govuk_publishing_components/version.rb +1 -1
  84. metadata +3 -4
  85. data/app/assets/javascripts/govuk_publishing_components/components/intervention.js +0 -17
@@ -84,6 +84,7 @@ nl:
84
84
  layout_footer:
85
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>
86
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
87
+ navigation_links:
87
88
  support_links: Links ondersteunen
88
89
  layout_for_public:
89
90
  account_layout:
@@ -84,6 +84,7 @@
84
84
  layout_footer:
85
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>
86
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
87
+ navigation_links:
87
88
  support_links: Støttelenker
88
89
  layout_for_public:
89
90
  account_layout:
@@ -80,6 +80,7 @@ pa-pk:
80
80
  layout_footer:
81
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>
82
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>, ایہ قبول کر لو جیڑا ایس توں علاوہ اے
83
+ navigation_links:
83
84
  support_links: مدد کرن والے لنک
84
85
  layout_for_public:
85
86
  account_layout:
@@ -84,6 +84,7 @@ pa:
84
84
  layout_footer:
85
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>
86
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>, ਦੇ ਅਧੀਨ ਸਾਰੀ ਸਮਗਰੀ ਉਪਲਬਧ ਹੈ ਸਿਵਾਏ ਇਸਦੇ ਜਿੱਥੇ ਹੋਰ ਨਹੀਂ ਕਿਹਾ ਗਿਆ ਹੈ
87
+ navigation_links:
87
88
  support_links: ਸਪੋਰਟ ਲਿੰਕ
88
89
  layout_for_public:
89
90
  account_layout:
@@ -88,6 +88,7 @@ pl:
88
88
  layout_footer:
89
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>
90
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
91
+ navigation_links:
91
92
  support_links: Linki pomocnicze
92
93
  layout_for_public:
93
94
  account_layout:
@@ -81,6 +81,7 @@ ps:
81
81
  layout_footer:
82
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>
83
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> ، پرته لدې چیرې چې بل ډول ویل شوي
84
+ navigation_links:
84
85
  support_links: د ملاتړ لینکونه
85
86
  layout_for_public:
86
87
  account_layout:
@@ -84,6 +84,7 @@ pt:
84
84
  layout_footer:
85
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>
86
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
87
+ navigation_links:
87
88
  support_links: Links de apoio
88
89
  layout_for_public:
89
90
  account_layout:
@@ -85,6 +85,7 @@ ro:
85
85
  layout_footer:
86
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>
87
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
88
+ navigation_links:
88
89
  support_links: Linkuri către asistență
89
90
  layout_for_public:
90
91
  account_layout:
@@ -88,6 +88,7 @@ ru:
88
88
  layout_footer:
89
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>
90
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>, если не указано иное
91
+ navigation_links:
91
92
  support_links: Ссылки поддержки
92
93
  layout_for_public:
93
94
  account_layout:
@@ -84,6 +84,7 @@ si:
84
84
  layout_footer:
85
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>
86
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>, යටතේ ලබා ගත හැකිය
87
+ navigation_links:
87
88
  support_links: සහාය සබැඳි
88
89
  layout_for_public:
89
90
  account_layout:
@@ -89,6 +89,7 @@ sk:
89
89
  layout_footer:
90
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>
91
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
92
+ navigation_links:
92
93
  support_links: Podporné odkazy
93
94
  layout_for_public:
94
95
  account_layout:
@@ -91,6 +91,7 @@ sl:
91
91
  layout_footer:
92
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>
93
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
94
+ navigation_links:
94
95
  support_links: Podporne povezave
95
96
  layout_for_public:
96
97
  account_layout:
@@ -84,6 +84,7 @@ so:
84
84
  layout_footer:
85
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>
86
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
87
+ navigation_links:
87
88
  support_links: Linkiyada caawinta
88
89
  layout_for_public:
89
90
  account_layout:
@@ -84,6 +84,7 @@ sq:
84
84
  layout_footer:
85
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>
86
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
87
+ navigation_links:
87
88
  support_links: Lidhjet mbështetëse
88
89
  layout_for_public:
89
90
  account_layout:
@@ -85,6 +85,7 @@ sr:
85
85
  layout_footer:
86
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>
87
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
88
+ navigation_links:
88
89
  support_links: Veze do podrške
89
90
  layout_for_public:
90
91
  account_layout:
@@ -84,6 +84,7 @@ sv:
84
84
  layout_footer:
85
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>
86
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
87
+ navigation_links:
87
88
  support_links: Supportlänkar
88
89
  layout_for_public:
89
90
  account_layout:
@@ -84,6 +84,7 @@ sw:
84
84
  layout_footer:
85
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>
86
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
87
+ navigation_links:
87
88
  support_links: Viungo vya ziada
88
89
  layout_for_public:
89
90
  account_layout:
@@ -85,6 +85,7 @@ ta:
85
85
  layout_footer:
86
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>
87
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>-ன்கீழ் கிடைக்கிறது.
88
+ navigation_links:
88
89
  support_links: உதவி இணைப்புகள்
89
90
  layout_for_public:
90
91
  account_layout:
@@ -82,6 +82,7 @@ th:
82
82
  layout_footer:
83
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>
84
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> ยกเว้นจะระบุไว้เป็นอย่างอื่น
85
+ navigation_links:
85
86
  support_links: ลิงค์สนับสนุน
86
87
  layout_for_public:
87
88
  account_layout:
@@ -85,6 +85,7 @@ tk:
85
85
  layout_footer:
86
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>
87
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
88
+ navigation_links:
88
89
  support_links: Goldaw baglanyşyklary
89
90
  layout_for_public:
90
91
  account_layout:
@@ -85,6 +85,7 @@ tr:
85
85
  layout_footer:
86
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>
87
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
88
+ navigation_links:
88
89
  support_links: Destek bağlantıları
89
90
  layout_for_public:
90
91
  account_layout:
@@ -91,6 +91,7 @@ uk:
91
91
  layout_footer:
92
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>
93
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>, якщо не зазначено інше
94
+ navigation_links:
94
95
  support_links: Посилання на підтримку
95
96
  layout_for_public:
96
97
  account_layout:
@@ -81,6 +81,7 @@ ur:
81
81
  layout_footer:
82
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>
83
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> کے تحت تمام مواد دستیاب ہے
84
+ navigation_links:
84
85
  support_links: معاونتی لنکس
85
86
  layout_for_public:
86
87
  account_layout:
@@ -86,6 +86,7 @@ uz:
86
86
  layout_footer:
87
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>
88
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>, агар бошқаси кўрсатилмаган бўлса
89
+ navigation_links:
89
90
  support_links: Қўллаб-қувватлашга ҳавола
90
91
  layout_for_public:
91
92
  account_layout:
@@ -83,6 +83,7 @@ vi:
83
83
  layout_footer:
84
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>
85
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
86
+ navigation_links:
86
87
  support_links: Liên kết hỗ trợ
87
88
  layout_for_public:
88
89
  account_layout:
@@ -82,6 +82,7 @@ zh-hk:
82
82
  layout_footer:
83
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>
84
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>獲取。
85
+ navigation_links:
85
86
  support_links: 支援連結
86
87
  layout_for_public:
87
88
  account_layout:
@@ -82,6 +82,7 @@ zh-tw:
82
82
  layout_footer:
83
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>
84
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>,除非另有說明
85
+ navigation_links:
85
86
  support_links: 補充連結
86
87
  layout_for_public:
87
88
  account_layout:
@@ -82,6 +82,7 @@ zh:
82
82
  layout_footer:
83
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>
84
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>获取
85
+ navigation_links:
85
86
  support_links: 支持链接
86
87
  layout_for_public:
87
88
  account_layout:
@@ -4,8 +4,11 @@ module GovukPublishingComponents
4
4
  # Various departments are taking part in a pilot to use a form
5
5
  # rather than direct email for users to request accessible formats. When the pilot
6
6
  # scheme is rolled out further this can be removed.
7
- # Currently the HMRC are participating in the pilot.
8
- EMAILS_IN_ACCESSIBLE_FORMAT_REQUEST_PILOT = %w[govuk_publishing_components@example.com].freeze
7
+ # Currently DfE, DWP and DVSA are participating in the pilot.
8
+ EMAILS_IN_ACCESSIBLE_FORMAT_REQUEST_PILOT = %w[govuk_publishing_components@example.com
9
+ alternative.formats@education.gov.uk
10
+ accessible.formats@dwp.gov.uk
11
+ gov.uk.publishing@dvsa.gov.uk].freeze
9
12
 
10
13
  delegate :opendocument?, :document?, :spreadsheet?, to: :content_type
11
14
 
@@ -1,6 +1,8 @@
1
1
  module GovukPublishingComponents
2
2
  module Presenters
3
3
  class MetaTags
4
+ FORMATS_THAT_MIGHT_INCLUDE_POSTCODES = %w[smart_answer finder local_transaction place special_route transaction].freeze
5
+
4
6
  attr_reader :content_item, :details, :links, :local_assigns, :request
5
7
 
6
8
  def initialize(content_item, local_assigns, request)
@@ -31,6 +33,7 @@ module GovukPublishingComponents
31
33
  meta_tags["govuk:schema-name"] = content_item[:schema_name] if content_item[:schema_name]
32
34
  meta_tags["govuk:content-id"] = content_item[:content_id] if content_item[:content_id]
33
35
  meta_tags["govuk:navigation-page-type"] = content_item[:navigation_page_type] if content_item[:navigation_page_type]
36
+ meta_tags["govuk:navigation-list-type"] = content_item[:navigation_list_type] if content_item[:navigation_list_type]
34
37
  meta_tags["govuk:section"] = content_item[:section] if content_item[:section]
35
38
  meta_tags["govuk:withdrawn"] = "withdrawn" if content_item[:withdrawn_notice].present?
36
39
  meta_tags["govuk:content-has-history"] = "true" if has_content_history?
@@ -148,8 +151,7 @@ module GovukPublishingComponents
148
151
  # document_type
149
152
  return local_assigns[:strip_postcode_pii] if local_assigns.key?(:strip_postcode_pii)
150
153
 
151
- formats_that_might_include_postcodes = %w[smart_answer finder]
152
- formats_that_might_include_postcodes.include?(content_item[:document_type])
154
+ FORMATS_THAT_MIGHT_INCLUDE_POSTCODES.include?(content_item[:document_type])
153
155
  end
154
156
  end
155
157
  end
@@ -1,294 +1,7 @@
1
1
  module GovukPublishingComponents
2
2
  module Presenters
3
3
  class PublicLayoutHelper
4
- FOOTER_NAV = [
5
- {
6
- title: "Services and information",
7
- columns: 2,
8
- items: [
9
- {
10
- href: "/browse/benefits",
11
- text: "Benefits",
12
- attributes: {
13
- data: {
14
- track_category: "footerClicked",
15
- track_action: "footerLinks",
16
- track_label: "Benefits",
17
- },
18
- },
19
- },
20
- {
21
- href: "/browse/births-deaths-marriages",
22
- text: "Births, deaths, marriages and care",
23
- attributes: {
24
- data: {
25
- track_category: "footerClicked",
26
- track_action: "footerLinks",
27
- track_label: "Births, deaths, marriages and care",
28
- },
29
- },
30
- },
31
- {
32
- href: "/browse/business",
33
- text: "Business and self-employed",
34
- attributes: {
35
- data: {
36
- track_category: "footerClicked",
37
- track_action: "footerLinks",
38
- track_label: "Business and self-employed",
39
- },
40
- },
41
- },
42
- {
43
- href: "/browse/childcare-parenting",
44
- text: "Childcare and parenting",
45
- attributes: {
46
- data: {
47
- track_category: "footerClicked",
48
- track_action: "footerLinks",
49
- track_label: "Childcare and parenting",
50
- },
51
- },
52
- },
53
- {
54
- href: "/browse/citizenship",
55
- text: "Citizenship and living in the UK",
56
- attributes: {
57
- data: {
58
- track_category: "footerClicked",
59
- track_action: "footerLinks",
60
- track_label: "Citizenship and living in the UK",
61
- },
62
- },
63
- },
64
- {
65
- href: "/browse/justice",
66
- text: "Crime, justice and the law",
67
- attributes: {
68
- data: {
69
- track_category: "footerClicked",
70
- track_action: "footerLinks",
71
- track_label: "Crime, justice and the law",
72
- },
73
- },
74
- },
75
- {
76
- href: "/browse/disabilities",
77
- text: "Disabled people",
78
- attributes: {
79
- data: {
80
- track_category: "footerClicked",
81
- track_action: "footerLinks",
82
- track_label: "Disabled people",
83
- },
84
- },
85
- },
86
- {
87
- href: "/browse/driving",
88
- text: "Driving and transport",
89
- attributes: {
90
- data: {
91
- track_category: "footerClicked",
92
- track_action: "footerLinks",
93
- track_label: "Driving and transport",
94
- },
95
- },
96
- },
97
- {
98
- href: "/browse/education",
99
- text: "Education and learning",
100
- attributes: {
101
- data: {
102
- track_category: "footerClicked",
103
- track_action: "footerLinks",
104
- track_label: "Education and learning",
105
- },
106
- },
107
- },
108
- {
109
- href: "/browse/employing-people",
110
- text: "Employing people",
111
- attributes: {
112
- data: {
113
- track_category: "footerClicked",
114
- track_action: "footerLinks",
115
- track_label: "Employing people",
116
- },
117
- },
118
- },
119
- {
120
- href: "/browse/environment-countryside",
121
- text: "Environment and countryside",
122
- attributes: {
123
- data: {
124
- track_category: "footerClicked",
125
- track_action: "footerLinks",
126
- track_label: "Environment and countryside",
127
- },
128
- },
129
- },
130
- {
131
- href: "/browse/housing-local-services",
132
- text: "Housing and local services",
133
- attributes: {
134
- data: {
135
- track_category: "footerClicked",
136
- track_action: "footerLinks",
137
- track_label: "Housing and local services",
138
- },
139
- },
140
- },
141
- {
142
- href: "/browse/tax",
143
- text: "Money and tax",
144
- attributes: {
145
- data: {
146
- track_category: "footerClicked",
147
- track_action: "footerLinks",
148
- track_label: "Money and tax",
149
- },
150
- },
151
- },
152
- {
153
- href: "/browse/abroad",
154
- text: "Passports, travel and living abroad",
155
- attributes: {
156
- data: {
157
- track_category: "footerClicked",
158
- track_action: "footerLinks",
159
- track_label: "Passports, travel and living abroad",
160
- },
161
- },
162
- },
163
- {
164
- href: "/browse/visas-immigration",
165
- text: "Visas and immigration",
166
- attributes: {
167
- data: {
168
- track_category: "footerClicked",
169
- track_action: "footerLinks",
170
- track_label: "Visas and immigration",
171
- },
172
- },
173
- },
174
- {
175
- href: "/browse/working",
176
- text: "Working, jobs and pensions",
177
- attributes: {
178
- data: {
179
- track_category: "footerClicked",
180
- track_action: "footerLinks",
181
- track_label: "Working, jobs and pensions",
182
- },
183
- },
184
- },
185
- ],
186
- },
187
- {
188
- title: "Departments and policy",
189
- items: [
190
- {
191
- href: "/government/how-government-works",
192
- text: "How government works",
193
- attributes: {
194
- data: {
195
- track_category: "footerClicked",
196
- track_action: "footerLinks",
197
- track_label: "How government works",
198
- },
199
- },
200
- },
201
- {
202
- href: "/government/organisations",
203
- text: "Departments",
204
- attributes: {
205
- data: {
206
- track_category: "footerClicked",
207
- track_action: "footerLinks",
208
- track_label: "Departments",
209
- },
210
- },
211
- },
212
- {
213
- href: "/world",
214
- text: "Worldwide",
215
- attributes: {
216
- data: {
217
- track_category: "footerClicked",
218
- track_action: "footerLinks",
219
- track_label: "Worldwide",
220
- },
221
- },
222
- },
223
- {
224
- href: "/search/services",
225
- text: "Services",
226
- attributes: {
227
- data: {
228
- track_category: "footerClicked",
229
- track_action: "footerLinks",
230
- track_label: "Services",
231
- },
232
- },
233
- },
234
- {
235
- href: "/search/guidance-and-regulation",
236
- text: "Guidance and regulation",
237
- attributes: {
238
- data: {
239
- track_category: "footerClicked",
240
- track_action: "footerLinks",
241
- track_label: "Guidance and regulation",
242
- },
243
- },
244
- },
245
- {
246
- href: "/search/news-and-communications",
247
- text: "News and communications",
248
- attributes: {
249
- data: {
250
- track_category: "footerClicked",
251
- track_action: "footerLinks",
252
- track_label: "News and communications",
253
- },
254
- },
255
- },
256
- {
257
- href: "/search/research-and-statistics",
258
- text: "Research and statistics",
259
- attributes: {
260
- data: {
261
- track_category: "footerClicked",
262
- track_action: "footerLinks",
263
- track_label: "Research and statistics",
264
- },
265
- },
266
- },
267
- {
268
- href: "/search/policy-papers-and-consultations",
269
- text: "Policy papers and consultations",
270
- attributes: {
271
- data: {
272
- track_category: "footerClicked",
273
- track_action: "footerLinks",
274
- track_label: "Policy papers and consultations",
275
- },
276
- },
277
- },
278
- {
279
- href: "/search/transparency-and-freedom-of-information-releases",
280
- text: "Transparency and freedom of information releases",
281
- attributes: {
282
- data: {
283
- track_category: "footerClicked",
284
- track_action: "footerLinks",
285
- track_label: "Transparency and freedom of information releases",
286
- },
287
- },
288
- },
289
- ],
290
- },
291
- ].freeze
4
+ FOOTER_NAVIGATION_COLUMNS = [2, 1].freeze
292
5
 
293
6
  FOOTER_META = {
294
7
  items: [
@@ -333,7 +46,23 @@ module GovukPublishingComponents
333
46
  attr_reader :footer_navigation, :footer_meta, :cookie_banner_data
334
47
 
335
48
  def initialize(local_assigns)
336
- @footer_navigation = local_assigns[:footer_navigation] || FOOTER_NAV
49
+ @footer_navigation = local_assigns[:footer_navigation] || I18n.t("components.layout_footer.navigation_links").each_with_index.map do |menu, i|
50
+ {
51
+ title: menu[:title],
52
+ columns: FOOTER_NAVIGATION_COLUMNS[i],
53
+ items: menu[:menu_contents].map do |item|
54
+ item.merge({
55
+ attributes: {
56
+ data: {
57
+ track_category: "footerClicked",
58
+ track_action: "footerLinks",
59
+ track_label: item[:text],
60
+ },
61
+ },
62
+ })
63
+ end,
64
+ }
65
+ end
337
66
  @footer_meta = local_assigns[:footer_meta] || FOOTER_META
338
67
  @cookie_banner_data = local_assigns[:cookie_banner_data] || {}
339
68
  end
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "29.3.0".freeze
2
+ VERSION = "29.6.0".freeze
3
3
  end