diff --git a/app/assets/stylesheets/views/_manual.scss b/app/assets/stylesheets/views/_manual.scss index 98d7cb91d..d387a4297 100644 --- a/app/assets/stylesheets/views/_manual.scss +++ b/app/assets/stylesheets/views/_manual.scss @@ -102,7 +102,7 @@ .manual-body { @include govuk-media-query($from: tablet) { - margin-top: govuk-spacing(6); + margin-top: govuk-spacing(4); } .section-title { diff --git a/app/views/content_items/manuals/_header.html.erb b/app/views/content_items/manuals/_header.html.erb index 0ca2c3eb3..131afc3c2 100644 --- a/app/views/content_items/manuals/_header.html.erb +++ b/app/views/content_items/manuals/_header.html.erb @@ -3,6 +3,7 @@ type ||= nil classes = %w[govuk-grid-row manuals-header] + classes << %w[govuk-!-margin-bottom-4] classes << "hmrc" if green_background %> @@ -48,8 +49,3 @@ </div> </div> <% end %> - -<%= render "govuk_publishing_components/components/breadcrumbs", { - border: "bottom", - breadcrumbs: @content_item.breadcrumbs, - collapse_on_mobile: false } %> diff --git a/app/views/content_items/manuals/_manual_layout.html.erb b/app/views/content_items/manuals/_manual_layout.html.erb index 91877c350..a3e28d401 100644 --- a/app/views/content_items/manuals/_manual_layout.html.erb +++ b/app/views/content_items/manuals/_manual_layout.html.erb @@ -1,4 +1,8 @@ <% content_for :main do %> + <%= render "govuk_publishing_components/components/heading", { + text: t("manuals.summary_title"), + margin_bottom: 4 + } %> <div id="manuals-frontend" class="manuals-frontend-body"> <%= machine_readable_metadata(schema: :article) %> @@ -15,8 +19,13 @@ <% end %> <% end %> + <%= render "govuk_publishing_components/components/heading", { + text: t("manuals.contents_title"), + margin_bottom: 4 + } %> + <%= yield %> <%= render 'govuk_publishing_components/components/print_link' %> </div> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/content_items/manuals/_manual_section_layout.html.erb b/app/views/content_items/manuals/_manual_section_layout.html.erb index c152f9d71..2576c284e 100644 --- a/app/views/content_items/manuals/_manual_section_layout.html.erb +++ b/app/views/content_items/manuals/_manual_section_layout.html.erb @@ -1,6 +1,10 @@ <% show_contents ||= false %> <% content_for :main do %> + <%= render "govuk_publishing_components/components/back_link", { + text: t("manuals.breadcrumb_contents"), + href: @content_item.base_path + } %> <div id="manuals-frontend" class="manuals-frontend-body"> <% if show_contents %> <%= render "govuk_publishing_components/components/contents_list", { diff --git a/app/views/content_items/manuals/_manual_updates_layout.html.erb b/app/views/content_items/manuals/_manual_updates_layout.html.erb index ce297ab69..1ee818928 100644 --- a/app/views/content_items/manuals/_manual_updates_layout.html.erb +++ b/app/views/content_items/manuals/_manual_updates_layout.html.erb @@ -1,4 +1,8 @@ <% content_for :main do %> + <%= render "govuk_publishing_components/components/back_link", { + text: t("manuals.breadcrumb_contents"), + href: @content_item.base_path + } %> <div id="manuals-frontend" class="manuals-frontend-body"> <%= render "content_items/manuals/updates", content_item: @content_item %> </div> diff --git a/config/locales/ar.yml b/config/locales/ar.yml index 9760893c4..c7b496574 100644 --- a/config/locales/ar.yml +++ b/config/locales/ar.yml @@ -772,8 +772,10 @@ ar: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/az.yml b/config/locales/az.yml index c2ae8eb33..971407031 100644 --- a/config/locales/az.yml +++ b/config/locales/az.yml @@ -464,8 +464,10 @@ az: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/be.yml b/config/locales/be.yml index b88d497aa..ae20ec250 100644 --- a/config/locales/be.yml +++ b/config/locales/be.yml @@ -618,8 +618,10 @@ be: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/bg.yml b/config/locales/bg.yml index deb9ef541..42943666c 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -464,8 +464,10 @@ bg: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/bn.yml b/config/locales/bn.yml index 4792d8e68..93f322f11 100644 --- a/config/locales/bn.yml +++ b/config/locales/bn.yml @@ -464,8 +464,10 @@ bn: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 185183678..3514293b4 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -541,8 +541,10 @@ cs: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/cy.yml b/config/locales/cy.yml index 034d96eab..0cc0e627d 100644 --- a/config/locales/cy.yml +++ b/config/locales/cy.yml @@ -772,8 +772,10 @@ cy: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/da.yml b/config/locales/da.yml index 9fd2e5b54..e8f00cc58 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -476,8 +476,10 @@ da: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/de.yml b/config/locales/de.yml index 5d0be6610..3be28ab2b 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -464,8 +464,10 @@ de: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/dr.yml b/config/locales/dr.yml index 0b8537e9e..5517064a7 100644 --- a/config/locales/dr.yml +++ b/config/locales/dr.yml @@ -467,8 +467,10 @@ dr: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/el.yml b/config/locales/el.yml index 28ab7a236..07dc48d97 100644 --- a/config/locales/el.yml +++ b/config/locales/el.yml @@ -464,8 +464,10 @@ el: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/en.yml b/config/locales/en.yml index c22d0b907..3b99b0bb6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -464,8 +464,10 @@ en: zh-hk: Cantonese zh-tw: Traditional Chinese manuals: - breadcrumb_contents: Contents + summary_title: Summary + breadcrumb_contents: Back to contents contents_list_breadcrumb_contents: Manual homepage + contents_title: Contents hmrc_manual_type: HMRC internal manual hmrc_title: "%{title}HMRC internal manual" next_page: Next page diff --git a/config/locales/es-419.yml b/config/locales/es-419.yml index a81429422..851ee2b7c 100644 --- a/config/locales/es-419.yml +++ b/config/locales/es-419.yml @@ -464,8 +464,10 @@ es-419: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/es.yml b/config/locales/es.yml index 5ca49a759..23f294232 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -464,8 +464,10 @@ es: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/et.yml b/config/locales/et.yml index 1de53bffc..c3d4c7556 100644 --- a/config/locales/et.yml +++ b/config/locales/et.yml @@ -464,8 +464,10 @@ et: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/fa.yml b/config/locales/fa.yml index 26dbe89ca..e2cd170b1 100644 --- a/config/locales/fa.yml +++ b/config/locales/fa.yml @@ -464,8 +464,10 @@ fa: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/fi.yml b/config/locales/fi.yml index 3333bf847..8bbfd4583 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -464,8 +464,10 @@ fi: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index af908c87e..9f3c856ca 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -464,8 +464,10 @@ fr: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/gd.yml b/config/locales/gd.yml index c7cc0a985..6fdd46129 100644 --- a/config/locales/gd.yml +++ b/config/locales/gd.yml @@ -618,8 +618,10 @@ gd: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/gu.yml b/config/locales/gu.yml index 5ec7fa647..f5eef8f40 100644 --- a/config/locales/gu.yml +++ b/config/locales/gu.yml @@ -464,8 +464,10 @@ gu: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/he.yml b/config/locales/he.yml index 860179bfb..0f1d062a0 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -464,8 +464,10 @@ he: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/hi.yml b/config/locales/hi.yml index 585fd8c30..3a13cb59e 100644 --- a/config/locales/hi.yml +++ b/config/locales/hi.yml @@ -464,8 +464,10 @@ hi: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/hr.yml b/config/locales/hr.yml index 41fc332f1..c19c0ff0e 100644 --- a/config/locales/hr.yml +++ b/config/locales/hr.yml @@ -541,8 +541,10 @@ hr: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/hu.yml b/config/locales/hu.yml index 3d4d9f948..903ecdd1a 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -464,8 +464,10 @@ hu: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/hy.yml b/config/locales/hy.yml index ff6861d92..62fb9c06a 100644 --- a/config/locales/hy.yml +++ b/config/locales/hy.yml @@ -464,8 +464,10 @@ hy: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/id.yml b/config/locales/id.yml index 0b21277be..f893eb140 100644 --- a/config/locales/id.yml +++ b/config/locales/id.yml @@ -387,8 +387,10 @@ id: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/is.yml b/config/locales/is.yml index bbe51874f..2998b1cef 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -464,8 +464,10 @@ is: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/it.yml b/config/locales/it.yml index 6d7c81418..c515fe541 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -464,8 +464,10 @@ it: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ja.yml b/config/locales/ja.yml index a9fdbc5c3..1de14557a 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -387,8 +387,10 @@ ja: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ka.yml b/config/locales/ka.yml index 450a6bc15..60bcb504a 100644 --- a/config/locales/ka.yml +++ b/config/locales/ka.yml @@ -464,8 +464,10 @@ ka: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/kk.yml b/config/locales/kk.yml index acfa67bf7..292908ea2 100644 --- a/config/locales/kk.yml +++ b/config/locales/kk.yml @@ -464,8 +464,10 @@ kk: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ko.yml b/config/locales/ko.yml index 13dad7179..414a41cd0 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -387,8 +387,10 @@ ko: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/lt.yml b/config/locales/lt.yml index b2394c3e7..2605d0138 100644 --- a/config/locales/lt.yml +++ b/config/locales/lt.yml @@ -541,8 +541,10 @@ lt: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/lv.yml b/config/locales/lv.yml index ce482728b..90c5a501d 100644 --- a/config/locales/lv.yml +++ b/config/locales/lv.yml @@ -464,8 +464,10 @@ lv: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ms.yml b/config/locales/ms.yml index cb7cbf39e..d2f5fbee3 100644 --- a/config/locales/ms.yml +++ b/config/locales/ms.yml @@ -387,8 +387,10 @@ ms: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/mt.yml b/config/locales/mt.yml index 41c870dbf..e2f39d3c6 100644 --- a/config/locales/mt.yml +++ b/config/locales/mt.yml @@ -618,8 +618,10 @@ mt: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ne.yml b/config/locales/ne.yml index bbe39fdbe..82eaabc37 100644 --- a/config/locales/ne.yml +++ b/config/locales/ne.yml @@ -464,8 +464,10 @@ ne: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 74a915589..77a89e25c 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -464,8 +464,10 @@ nl: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/no.yml b/config/locales/no.yml index f9cad7bb5..0a3b23d93 100644 --- a/config/locales/no.yml +++ b/config/locales/no.yml @@ -464,8 +464,10 @@ zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/pa-pk.yml b/config/locales/pa-pk.yml index 9745de5af..332a72b52 100644 --- a/config/locales/pa-pk.yml +++ b/config/locales/pa-pk.yml @@ -464,8 +464,10 @@ pa-pk: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/pa.yml b/config/locales/pa.yml index f0d131a54..8c17fa8a2 100644 --- a/config/locales/pa.yml +++ b/config/locales/pa.yml @@ -464,8 +464,10 @@ pa: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/pl.yml b/config/locales/pl.yml index b1619a397..4e73db463 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -618,8 +618,10 @@ pl: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ps.yml b/config/locales/ps.yml index 214d7677d..4be5dc1fa 100644 --- a/config/locales/ps.yml +++ b/config/locales/ps.yml @@ -464,8 +464,10 @@ ps: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 305ef46bb..bf96fb033 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -464,8 +464,10 @@ pt: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ro.yml b/config/locales/ro.yml index c501cccc9..e555c98dd 100644 --- a/config/locales/ro.yml +++ b/config/locales/ro.yml @@ -541,8 +541,10 @@ ro: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 69d8d88e9..515c13b39 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -618,8 +618,10 @@ ru: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/si.yml b/config/locales/si.yml index b210e49a5..34975866f 100644 --- a/config/locales/si.yml +++ b/config/locales/si.yml @@ -464,8 +464,10 @@ si: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/sk.yml b/config/locales/sk.yml index b41aec908..c7df36779 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -541,8 +541,10 @@ sk: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 0a57165d6..af174ad39 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -618,8 +618,10 @@ sl: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/so.yml b/config/locales/so.yml index 1c950013a..b03a67214 100644 --- a/config/locales/so.yml +++ b/config/locales/so.yml @@ -464,8 +464,10 @@ so: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/sq.yml b/config/locales/sq.yml index c59137f61..28ca493ab 100644 --- a/config/locales/sq.yml +++ b/config/locales/sq.yml @@ -464,8 +464,10 @@ sq: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 503119b08..bb5008a25 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -541,8 +541,10 @@ sr: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/sv.yml b/config/locales/sv.yml index cb8f68d3e..add14461e 100644 --- a/config/locales/sv.yml +++ b/config/locales/sv.yml @@ -464,8 +464,10 @@ sv: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/sw.yml b/config/locales/sw.yml index 1fcd3597f..d4c394227 100644 --- a/config/locales/sw.yml +++ b/config/locales/sw.yml @@ -464,8 +464,10 @@ sw: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ta.yml b/config/locales/ta.yml index 6df58c83c..f98d41f5a 100644 --- a/config/locales/ta.yml +++ b/config/locales/ta.yml @@ -464,8 +464,10 @@ ta: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/th.yml b/config/locales/th.yml index f24709c5e..bf6ae459f 100644 --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -387,8 +387,10 @@ th: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/tk.yml b/config/locales/tk.yml index a9d8f16f9..f6e293e9a 100644 --- a/config/locales/tk.yml +++ b/config/locales/tk.yml @@ -464,8 +464,10 @@ tk: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/tr.yml b/config/locales/tr.yml index 8e78554cd..89e50dad9 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -464,8 +464,10 @@ tr: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/uk.yml b/config/locales/uk.yml index 559a80872..f4a085b7d 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -618,8 +618,10 @@ uk: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/ur.yml b/config/locales/ur.yml index 04788e033..9b469530b 100644 --- a/config/locales/ur.yml +++ b/config/locales/ur.yml @@ -464,8 +464,10 @@ ur: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/uz.yml b/config/locales/uz.yml index 69065a367..61c196d5c 100644 --- a/config/locales/uz.yml +++ b/config/locales/uz.yml @@ -464,8 +464,10 @@ uz: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/vi.yml b/config/locales/vi.yml index 4d84fba15..2fee41a5c 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -387,8 +387,10 @@ vi: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/yi.yml b/config/locales/yi.yml index cbe029e98..8faae6a84 100644 --- a/config/locales/yi.yml +++ b/config/locales/yi.yml @@ -464,8 +464,10 @@ yi: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/zh-hk.yml b/config/locales/zh-hk.yml index c0c273281..990154022 100644 --- a/config/locales/zh-hk.yml +++ b/config/locales/zh-hk.yml @@ -387,8 +387,10 @@ zh-hk: zh-hk: 中文 zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/zh-tw.yml b/config/locales/zh-tw.yml index 659c372e9..443796121 100644 --- a/config/locales/zh-tw.yml +++ b/config/locales/zh-tw.yml @@ -387,8 +387,10 @@ zh-tw: zh-hk: zh-tw: 繁體中文 manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 6472b9be4..4d4406a46 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -387,8 +387,10 @@ zh: zh-hk: zh-tw: manuals: + summary_title: breadcrumb_contents: contents_list_breadcrumb_contents: + contents_title: hmrc_manual_type: hmrc_title: next_page: diff --git a/test/integration/hmrc_manual_section_test.rb b/test/integration/hmrc_manual_section_test.rb index a8adda4ac..72f8b0fc7 100644 --- a/test/integration/hmrc_manual_section_test.rb +++ b/test/integration/hmrc_manual_section_test.rb @@ -42,13 +42,10 @@ class HmrcManualSectionTest < ActionDispatch::IntegrationTest end end - test "renders manual specific breadcrumbs" do + test "renders back link" do setup_and_visit_manual_section - manual_specific_breadcrumbs = page.all(".gem-c-breadcrumbs")[1] - within manual_specific_breadcrumbs do - assert page.has_text?(I18n.t("manuals.breadcrumb_contents")) - end + assert page.has_link?(I18n.t("manuals.breadcrumb_contents"), href: "/hmrc-internal-manuals/vat-government-and-public-bodies") end test "renders section group" do diff --git a/test/integration/hmrc_manual_test.rb b/test/integration/hmrc_manual_test.rb index 59531d22f..57ecbd319 100644 --- a/test/integration/hmrc_manual_test.rb +++ b/test/integration/hmrc_manual_test.rb @@ -42,13 +42,16 @@ class HmrcManualTest < ActionDispatch::IntegrationTest end end - test "renders manual specific breadcrumbs" do + test "renders about title" do setup_and_visit_content_item("vat-government-public-bodies") - manual_specific_breadcrumbs = page.all(".gem-c-breadcrumbs")[1] - within manual_specific_breadcrumbs do - assert page.has_text?(I18n.t("manuals.breadcrumb_contents")) - end + assert page.has_text?(I18n.t("manuals.summary_title")) + end + + test "renders contents title heading" do + setup_and_visit_content_item("vat-government-public-bodies") + + assert page.has_selector?("h2", text: I18n.t("manuals.contents_title")) end test "renders section groups" do diff --git a/test/integration/hmrc_manual_updates_test.rb b/test/integration/hmrc_manual_updates_test.rb index ef04835ad..be295b528 100644 --- a/test/integration/hmrc_manual_updates_test.rb +++ b/test/integration/hmrc_manual_updates_test.rb @@ -39,13 +39,10 @@ class HmrcManualUpdatesTest < ActionDispatch::IntegrationTest end end - test "renders manual specific breadcrumbs" do + test "renders back link" do setup_and_visit_manual_updates - manual_specific_breadcrumbs = page.all(".gem-c-breadcrumbs")[1] - within manual_specific_breadcrumbs do - assert page.has_link?(I18n.t("manuals.breadcrumb_contents"), href: @content_item["base_path"]) - end + assert page.has_link?(I18n.t("manuals.breadcrumb_contents"), href: @content_item["base_path"]) end test "renders change note updates" do diff --git a/test/integration/manual_section_test.rb b/test/integration/manual_section_test.rb index 1216cbfc6..776159856 100644 --- a/test/integration/manual_section_test.rb +++ b/test/integration/manual_section_test.rb @@ -55,13 +55,10 @@ class ManualSectionTest < ActionDispatch::IntegrationTest end end - test "renders manual specific breadcrumbs" do + test "renders back link" do setup_and_visit_manual_section - manual_specific_breadcrumbs = page.all(".gem-c-breadcrumbs")[1] - within manual_specific_breadcrumbs do - assert page.has_link?(I18n.t("manuals.breadcrumb_contents"), href: @manual["base_path"]) - end + assert page.has_link?(I18n.t("manuals.breadcrumb_contents"), href: @manual["base_path"]) end test "renders sections accordion" do diff --git a/test/integration/manual_test.rb b/test/integration/manual_test.rb index b005c1ccb..aff83fe64 100644 --- a/test/integration/manual_test.rb +++ b/test/integration/manual_test.rb @@ -38,13 +38,16 @@ class ManualTest < ActionDispatch::IntegrationTest end end - test "renders manual specific breadcrumbs" do + test "renders about title" do setup_and_visit_content_item("content-design") - manual_specific_breadcrumbs = page.all(".gem-c-breadcrumbs")[1] - within manual_specific_breadcrumbs do - assert page.has_text?(I18n.t("manuals.breadcrumb_contents")) - end + assert page.has_text?(I18n.t("manuals.summary_title")) + end + + test "renders contents title heading" do + setup_and_visit_content_item("content-design") + + assert page.has_selector?("h2", text: I18n.t("manuals.contents_title")) end test "renders body govspeak" do diff --git a/test/integration/manual_updates_test.rb b/test/integration/manual_updates_test.rb index d270340eb..641cb8c17 100644 --- a/test/integration/manual_updates_test.rb +++ b/test/integration/manual_updates_test.rb @@ -35,13 +35,10 @@ class ManualUpdatesTest < ActionDispatch::IntegrationTest end end - test "renders manual specific breadcrumbs" do + test "renders back link" do setup_and_visit_manual_updates - manual_specific_breadcrumbs = page.all(".gem-c-breadcrumbs")[1] - within manual_specific_breadcrumbs do - assert page.has_link?(I18n.t("manuals.breadcrumb_contents"), href: @content_item["base_path"]) - end + assert page.has_link?(I18n.t("manuals.breadcrumb_contents"), href: @content_item["base_path"]) end test "renders change note updates" do