govuk_publishing_components 29.5.0 → 29.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +72 -73
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +11 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/gtm-click-tracking.js +49 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4.js +1 -0
  6. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +0 -1
  7. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +20 -6
  8. data/app/assets/javascripts/govuk_publishing_components/modules.js +0 -1
  9. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-measurer.js +28 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +11 -4
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
  13. data/app/controllers/govuk_publishing_components/audit_controller.rb +1 -4
  14. data/app/models/govuk_publishing_components/audit_components.rb +61 -24
  15. data/app/views/govuk_publishing_components/audit/_applications.html.erb +8 -3
  16. data/app/views/govuk_publishing_components/audit/_component_contents.html.erb +82 -0
  17. data/app/views/govuk_publishing_components/audit/_components.html.erb +2 -47
  18. data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
  19. data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
  20. data/app/views/govuk_publishing_components/components/_attachment.html.erb +1 -1
  21. data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +1 -1
  22. data/app/views/govuk_publishing_components/components/_cards.html.erb +13 -11
  23. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -1
  24. data/app/views/govuk_publishing_components/components/docs/document_list.yml +4 -4
  25. data/app/views/govuk_publishing_components/components/docs/heading.yml +1 -1
  26. data/app/views/govuk_publishing_components/components/docs/image_card.yml +1 -1
  27. data/app/views/govuk_publishing_components/components/docs/meta_tags.yml +4 -4
  28. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -1
  29. data/app/views/govuk_publishing_components/components/docs/share_links.yml +1 -1
  30. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +1 -1
  31. data/app/views/govuk_publishing_components/components/docs/translation_nav.yml +1 -2
  32. data/config/locales/ar.yml +1 -0
  33. data/config/locales/az.yml +1 -0
  34. data/config/locales/be.yml +1 -0
  35. data/config/locales/bg.yml +1 -0
  36. data/config/locales/bn.yml +1 -0
  37. data/config/locales/cs.yml +1 -0
  38. data/config/locales/cy.yml +1 -0
  39. data/config/locales/da.yml +1 -0
  40. data/config/locales/de.yml +1 -0
  41. data/config/locales/dr.yml +1 -0
  42. data/config/locales/el.yml +1 -0
  43. data/config/locales/en.yml +54 -3
  44. data/config/locales/es-419.yml +1 -0
  45. data/config/locales/es.yml +1 -0
  46. data/config/locales/et.yml +1 -0
  47. data/config/locales/fa.yml +1 -0
  48. data/config/locales/fi.yml +1 -0
  49. data/config/locales/fr.yml +1 -0
  50. data/config/locales/gd.yml +1 -0
  51. data/config/locales/gu.yml +1 -0
  52. data/config/locales/he.yml +1 -0
  53. data/config/locales/hi.yml +1 -0
  54. data/config/locales/hr.yml +1 -0
  55. data/config/locales/hu.yml +1 -0
  56. data/config/locales/hy.yml +1 -0
  57. data/config/locales/id.yml +1 -0
  58. data/config/locales/is.yml +1 -0
  59. data/config/locales/it.yml +1 -0
  60. data/config/locales/ja.yml +1 -0
  61. data/config/locales/ka.yml +1 -0
  62. data/config/locales/kk.yml +1 -0
  63. data/config/locales/ko.yml +1 -0
  64. data/config/locales/lt.yml +1 -0
  65. data/config/locales/lv.yml +1 -0
  66. data/config/locales/ms.yml +1 -0
  67. data/config/locales/mt.yml +1 -0
  68. data/config/locales/nl.yml +1 -0
  69. data/config/locales/no.yml +1 -0
  70. data/config/locales/pa-pk.yml +1 -0
  71. data/config/locales/pa.yml +1 -0
  72. data/config/locales/pl.yml +1 -0
  73. data/config/locales/ps.yml +1 -0
  74. data/config/locales/pt.yml +1 -0
  75. data/config/locales/ro.yml +1 -0
  76. data/config/locales/ru.yml +1 -0
  77. data/config/locales/si.yml +1 -0
  78. data/config/locales/sk.yml +1 -0
  79. data/config/locales/sl.yml +1 -0
  80. data/config/locales/so.yml +1 -0
  81. data/config/locales/sq.yml +1 -0
  82. data/config/locales/sr.yml +1 -0
  83. data/config/locales/sv.yml +1 -0
  84. data/config/locales/sw.yml +1 -0
  85. data/config/locales/ta.yml +1 -0
  86. data/config/locales/th.yml +1 -0
  87. data/config/locales/tk.yml +1 -0
  88. data/config/locales/tr.yml +1 -0
  89. data/config/locales/uk.yml +1 -0
  90. data/config/locales/ur.yml +1 -0
  91. data/config/locales/uz.yml +1 -0
  92. data/config/locales/vi.yml +1 -0
  93. data/config/locales/zh-hk.yml +1 -0
  94. data/config/locales/zh-tw.yml +1 -0
  95. data/config/locales/zh.yml +1 -0
  96. data/lib/generators/govuk_publishing_components/templates/_component.html.erb +1 -1
  97. data/lib/govuk_publishing_components/app_helpers/brand_helper.rb +1 -1
  98. data/lib/govuk_publishing_components/presenters/{attachment.rb → attachment_helper.rb} +1 -2
  99. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +18 -289
  100. data/lib/govuk_publishing_components/version.rb +1 -1
  101. data/lib/govuk_publishing_components.rb +1 -1
  102. metadata +7 -4
@@ -0,0 +1,82 @@
1
+ <%
2
+ total_components = components.length
3
+ components_with_stylesheet = 0
4
+ components_with_print_stylesheet = 0
5
+ components_with_javascript = 0
6
+ components_with_test = 0
7
+ components_with_javascript_test = 0
8
+ components_with_helper = 0
9
+
10
+ components.each do |component|
11
+ components_with_stylesheet += 1 if component[:stylesheet]
12
+ components_with_print_stylesheet += 1 if component[:print_stylesheet]
13
+ components_with_javascript += 1 if component[:javascript]
14
+ components_with_test += 1 if component[:tests]
15
+ components_with_javascript_test += 1 if component[:js_tests]
16
+ components_with_helper += 1 if component[:helper]
17
+ end
18
+ %>
19
+ <table class="govuk-table">
20
+ <thead class="govuk-table__head">
21
+ <tr class="govuk-table__row">
22
+ <th scope="col" class="govuk-table__header sticky-table-header">Component (<%= total_components %>)</th>
23
+ <th scope="col" class="govuk-table__header sticky-table-header">CSS (<%= components_with_stylesheet %>)</th>
24
+ <th scope="col" class="govuk-table__header sticky-table-header">Print CSS (<%= components_with_print_stylesheet %>)</th>
25
+ <th scope="col" class="govuk-table__header sticky-table-header">JS (<%= components_with_javascript %>)</th>
26
+ <th scope="col" class="govuk-table__header sticky-table-header">Test (<%= components_with_test %>)</th>
27
+ <th scope="col" class="govuk-table__header sticky-table-header">JS test (<%= components_with_javascript_test %>)</th>
28
+ <th scope="col" class="govuk-table__header sticky-table-header">Helper (<%= components_with_helper %>)</th>
29
+ </tr>
30
+ </thead>
31
+ <tbody class="govuk-table__body">
32
+ <% components.each do |component| %>
33
+ <tr class="govuk-table__row">
34
+ <th scope="row" class="govuk-table__header">
35
+ <a href="<%= component[:link] %>" class="govuk-link"><%= component[:name] %></a>
36
+ </th>
37
+ <td class="govuk-table__cell">
38
+ <% if component[:stylesheet] %>
39
+ <strong class="govuk-tag govuk-tag--green">
40
+ <a href="<%= component[:stylesheet] %>" class="govuk-link">Yes</a>
41
+ </strong>
42
+ <% end %>
43
+ </td>
44
+ <td class="govuk-table__cell">
45
+ <% if component[:print_stylesheet] %>
46
+ <strong class="govuk-tag govuk-tag--green">
47
+ <a href="<%= component[:print_stylesheet] %>" class="govuk-link">Yes</a>
48
+ </strong>
49
+ <% end %>
50
+ </td>
51
+ <td class="govuk-table__cell">
52
+ <% if component[:javascript] %>
53
+ <strong class="govuk-tag govuk-tag--green">
54
+ <a href="<%= component[:javascript] %>" class="govuk-link">Yes</a>
55
+ </strong>
56
+ <% end %>
57
+ </td>
58
+ <td class="govuk-table__cell">
59
+ <% if component[:tests] %>
60
+ <strong class="govuk-tag govuk-tag--green">
61
+ <a href="<%= component[:tests] %>" class="govuk-link">Yes</a>
62
+ </strong>
63
+ <% end %>
64
+ </td>
65
+ <td class="govuk-table__cell">
66
+ <% if component[:js_tests] %>
67
+ <strong class="govuk-tag govuk-tag--green">
68
+ <a href="<%= component[:js_tests] %>" class="govuk-link">Yes</a>
69
+ </strong>
70
+ <% end %>
71
+ </td>
72
+ <td class="govuk-table__cell">
73
+ <% if component[:helper] %>
74
+ <strong class="govuk-tag govuk-tag--green">
75
+ <a href="<%= component[:helper] %>" class="govuk-link">Yes</a>
76
+ </strong>
77
+ <% end %>
78
+ </td>
79
+ </tr>
80
+ <% end %>
81
+ </tbody>
82
+ </table>
@@ -1,6 +1,6 @@
1
1
  <% if @other_applications %>
2
2
  <%= render "govuk_publishing_components/components/heading", {
3
- text: "Components",
3
+ text: "Components in the gem",
4
4
  font_size: "l",
5
5
  margin_bottom: 6,
6
6
  } %>
@@ -10,52 +10,7 @@
10
10
  <% component_items = [] %>
11
11
 
12
12
  <% component_files = capture do %>
13
- <table class="govuk-table">
14
- <thead class="govuk-table__head">
15
- <tr class="govuk-table__row">
16
- <th scope="col" class="govuk-table__header sticky-table-header">Component</th>
17
- <th scope="col" class="govuk-table__header sticky-table-header">Stylesheet</th>
18
- <th scope="col" class="govuk-table__header sticky-table-header">Print stylesheet</th>
19
- <th scope="col" class="govuk-table__header sticky-table-header">JS</th>
20
- <th scope="col" class="govuk-table__header sticky-table-header">Test</th>
21
- <th scope="col" class="govuk-table__header sticky-table-header">JS test</th>
22
- </tr>
23
- </thead>
24
- <tbody class="govuk-table__body">
25
- <% @components[:component_listing].each do |component| %>
26
- <tr class="govuk-table__row">
27
- <th scope="row" class="govuk-table__header">
28
- <a href="<%= component[:link] %>" class="govuk-link"><%= component[:name] %></a>
29
- </th>
30
- <td class="govuk-table__cell">
31
- <% if component[:stylesheet] %>
32
- <strong class="govuk-tag govuk-tag--green">Yes</strong>
33
- <% end %>
34
- </td>
35
- <td class="govuk-table__cell">
36
- <% if component[:print_stylesheet] %>
37
- <strong class="govuk-tag govuk-tag--green">Yes</strong>
38
- <% end %>
39
- </td>
40
- <td class="govuk-table__cell">
41
- <% if component[:javascript] %>
42
- <strong class="govuk-tag govuk-tag--green">Yes</strong>
43
- <% end %>
44
- </td>
45
- <td class="govuk-table__cell">
46
- <% if component[:tests] %>
47
- <strong class="govuk-tag govuk-tag--green">Yes</strong>
48
- <% end %>
49
- </td>
50
- <td class="govuk-table__cell">
51
- <% if component[:js_tests] %>
52
- <strong class="govuk-tag govuk-tag--green">Yes</strong>
53
- <% end %>
54
- </td>
55
- </tr>
56
- <% end %>
57
- </tbody>
58
- </table>
13
+ <%= render partial: "component_contents", locals: { components: @components[:component_listing] } %>
59
14
  <% end %>
60
15
 
61
16
  <%
@@ -20,7 +20,7 @@
20
20
  <p>Components are packages of template, style, behaviour and documentation that live in your application.</p>
21
21
  <p>See the <a href="https://github.com/alphagov/govuk_publishing_components">govuk_publishing_components gem</a> for further details, or <a href="https://docs.publishing.service.gov.uk/manual/components.html#component-guides">a list of all component guides</a>.</p>
22
22
  <ul>
23
- <li>Read about how to <a href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/publishing-to-rubygems.md">release a new version of the gem</a></li>
23
+ <li>Read about how to <a href="https://github.com/alphagov/govuk_publishing_components/blob/main/docs/publishing-to-rubygems.md">release a new version of the gem</a></li>
24
24
  <% if ENV["MAIN_COMPONENT_GUIDE"] %>
25
25
  <li><a href="/component-guide/audit">View component audits</a></li>
26
26
  <% end %>
@@ -105,5 +105,5 @@
105
105
  </ul>
106
106
 
107
107
  <div class="component-markdown">
108
- <p class="govuk-body">If you cannot find a suitable component consider extending an existing component or <a href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/generate-a-new-component.md">creating a new one</a>.</p>
108
+ <p class="govuk-body">If you cannot find a suitable component consider extending an existing component or <a href="https://github.com/alphagov/govuk_publishing_components/blob/main/docs/generate-a-new-component.md">creating a new one</a>.</p>
109
109
  </div>
@@ -13,7 +13,7 @@
13
13
  <% if !@component_doc.accessibility_criteria.present? %>
14
14
  <div class="component-violation">
15
15
  <h2 class="component-violation__title">This component is not valid</h2>
16
- <a class="component-violation__link" href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/accessibility_acceptance_criteria.md">Please define accessibility acceptance criteria for this component.</a>
16
+ <a class="component-violation__link" href="https://github.com/alphagov/govuk_publishing_components/blob/main/docs/accessibility_acceptance_criteria.md">Please define accessibility acceptance criteria for this component.</a>
17
17
  </div>
18
18
  <% end %>
19
19
  <%= render 'govuk_publishing_components/components/lead_paragraph', text: @component_doc.description %>
@@ -1,5 +1,5 @@
1
1
  <%
2
- attachment = GovukPublishingComponents::Presenters::Attachment.new(attachment)
2
+ attachment = GovukPublishingComponents::Presenters::AttachmentHelper.new(attachment)
3
3
  target ||= "_self"
4
4
  hide_opendocument_metadata ||= false
5
5
  hide_order_copy_link ||= false
@@ -1,5 +1,5 @@
1
1
  <%
2
- attachment = GovukPublishingComponents::Presenters::Attachment.new(attachment)
2
+ attachment = GovukPublishingComponents::Presenters::AttachmentHelper.new(attachment)
3
3
  target ||= nil
4
4
  data_attributes ||= {}
5
5
  attributes = []
@@ -31,17 +31,19 @@
31
31
  end
32
32
  %>
33
33
  <li class="gem-c-cards__list-item">
34
- <%= content_tag("h#{sub_heading_level}", class: "gem-c-cards__sub-heading govuk-heading-s") do %>
35
- <%=
36
- link_to link[:text], link[:path],
37
- class: "govuk-link gem-c-cards__link",
38
- data: link[:data_attributes],
39
- "data-track-count": "cardLink"
40
- %>
41
- <% end %>
42
- <% if item[:description] %>
43
- <p class="govuk-body gem-c-cards__description"><%= item[:description] %></p>
44
- <% end %>
34
+ <div class="gem-c-cards__list-item-wrapper">
35
+ <%= content_tag("h#{sub_heading_level}", class: "gem-c-cards__sub-heading govuk-heading-s") do %>
36
+ <%=
37
+ link_to link[:text], link[:path],
38
+ class: "govuk-link gem-c-cards__link",
39
+ data: link[:data_attributes],
40
+ "data-track-count": "cardLink"
41
+ %>
42
+ <% end %>
43
+ <% if item[:description] %>
44
+ <p class="govuk-body gem-c-cards__description"><%= item[:description] %></p>
45
+ <% end %>
46
+ </div>
45
47
  </li>
46
48
  <% end %>
47
49
  <% end %>
@@ -191,7 +191,7 @@ examples:
191
191
  context:
192
192
  right_to_left: true
193
193
  with_branding:
194
- description: Where this component could be used on an organisation page (such as the [Attorney General's Office](https://www.gov.uk/government/organisations/attorney-generals-office)) branding can be applied for link colours and border colours. See the [branding documentation](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) for more details.
194
+ description: Where this component could be used on an organisation page (such as the [Attorney General's Office](https://www.gov.uk/government/organisations/attorney-generals-office)) branding can be applied for link colours and border colours. See the [branding documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) for more details.
195
195
  data:
196
196
  brand: 'department-for-environment-food-rural-affairs'
197
197
  format_numbers: true
@@ -2,7 +2,7 @@ name: Document list
2
2
  description: An ordered list of documents including a document type, when updated and a link.
3
3
  body: |
4
4
  Outputs a list to documents, based on an array of document data. A "document" in this context can be an asset (such as a ODT or other downloadable document) or a web page.
5
-
5
+
6
6
  The component can display:
7
7
 
8
8
  * a document title
@@ -116,7 +116,7 @@ examples:
116
116
  public_updated_at: 2017-07-19 15:01:48
117
117
  document_type: 'Statutory guidance'
118
118
  with_branding:
119
- description: Where this component could be used on an organisation page (such as the [Attorney General's Office](https://www.gov.uk/government/organisations/attorney-generals-office)) branding can be applied for link colours and border colours. See the [branding documentation](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) for more details.
119
+ description: Where this component could be used on an organisation page (such as the [Attorney General's Office](https://www.gov.uk/government/organisations/attorney-generals-office)) branding can be applied for link colours and border colours. See the [branding documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) for more details.
120
120
  data:
121
121
  brand: 'attorney-generals-office'
122
122
  items:
@@ -308,9 +308,9 @@ examples:
308
308
  with_rel_link_attribute:
309
309
  description: |
310
310
  The [rel attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel) is an option attribute to dictate the relationship between the document being linked to and the current page. This is predominantly used by search engines to help index journeys through a website.
311
-
311
+
312
312
  On GOV.UK, this is typically used to dictate an external website being linked to with `rel="external"`, however this component supports:
313
-
313
+
314
314
  - external
315
315
  - nofollow
316
316
  - noopener
@@ -65,7 +65,7 @@ examples:
65
65
  padding: true
66
66
  border_top: 2
67
67
  with_branding:
68
- description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) can be added to the component as shown, if a top border is included.
68
+ description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) can be added to the component as shown, if a top border is included.
69
69
  data:
70
70
  text: 'Branding'
71
71
  brand: 'department-for-environment-food-rural-affairs'
@@ -166,7 +166,7 @@ examples:
166
166
  heading_text: 'John McJohnson'
167
167
  description: 'Deputy director for Parks and Small Trees'
168
168
  with_branding:
169
- description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) can be added to the component as shown.
169
+ description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) can be added to the component as shown.
170
170
  data:
171
171
  brand: "department-for-work-pensions"
172
172
  href: "/again-not-a-page"
@@ -4,9 +4,9 @@ body: |
4
4
  This takes a content-store links hash like object which it can then turn into
5
5
  the correct analytics identifier metadata tags.
6
6
 
7
- These are additionally used by the <a href="https://github.com/alphagov/govuk-browser-extension">GOV.UK browser extension</a> to provide details about a given page.
7
+ These are additionally used by the <a href="https://github.com/alphagov/govuk-browser-extension">GOV.UK browser extension</a> to provide details about a given page.
8
8
 
9
- The code which reads the meta tags can be found <a href="https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js">in custom-dimensions.js</a>.
9
+ The code which reads the meta tags can be found <a href="https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js">in custom-dimensions.js</a>.
10
10
  accessibility_criteria: |
11
11
  The analytics meta tags component should not be visible to any users.
12
12
  display_html: true
@@ -24,7 +24,7 @@ examples:
24
24
  with_content_history_tags:
25
25
  description: |
26
26
  The tags in this object will generate the `content-has-history` tag, set to true. This tag is triggered when either, within `content_item`:
27
-
27
+
28
28
  1. `public_updated_at` and `first_public_at` within `details` are both present and they aren't the same value
29
29
  2. `change_history` within `details` is present and it has a value of more than 1
30
30
 
@@ -121,4 +121,4 @@ examples:
121
121
  content_item:
122
122
  links:
123
123
  secondary_to_step_navs:
124
- - content_id: "22222222-2222-2222-2222-222222222222"
124
+ - content_id: "22222222-2222-2222-2222-222222222222"
@@ -359,7 +359,7 @@ examples:
359
359
  dark_background: true
360
360
  with_custom_margin_bottom:
361
361
  description: |
362
- The component accepts a number for margin bottom from `0` to `9` (`0px` to `60px`) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to the `margin-bottom` values defined in the [responsive-bottom-margin mixin](https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss#L1)
362
+ The component accepts a number for margin bottom from `0` to `9` (`0px` to `60px`) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to the `margin-bottom` values defined in the [responsive-bottom-margin mixin](https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss#L1)
363
363
  data:
364
364
  first_published: 14 June 2014
365
365
  last_updated: 10 September 2015
@@ -80,7 +80,7 @@ examples:
80
80
  }
81
81
  ]
82
82
  with_branding:
83
- description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) can be added to the component as shown.
83
+ description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) can be added to the component as shown.
84
84
  data:
85
85
  brand: 'attorney-generals-office'
86
86
  links: [
@@ -46,7 +46,7 @@ examples:
46
46
  email_signup_link: '/foreign-travel-advice/singapore/email-signup'
47
47
  feed_link_box_value: 'https://www.gov.uk/government/organisations/attorney-generals-office.atom'
48
48
  with_branding:
49
- description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) can be added to the component as shown.
49
+ description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) can be added to the component as shown.
50
50
  data:
51
51
  brand: 'attorney-generals-office'
52
52
  email_signup_link: '/foreign-travel-advice/singapore/email-signup'
@@ -60,7 +60,7 @@ examples:
60
60
  context:
61
61
  right_to_left: true
62
62
  with_branding:
63
- description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_branding.md) can be added to the component as shown.
63
+ description: Organisation [colour branding](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md) can be added to the component as shown.
64
64
  data:
65
65
  brand: 'wales-office'
66
66
  translations:
@@ -134,4 +134,3 @@ examples:
134
134
  dimension29: 'dimension29Welsh'
135
135
  context:
136
136
  dark_background: true
137
-
@@ -87,6 +87,7 @@ ar:
87
87
  layout_footer:
88
88
  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>
89
89
  licence_html: كل المحتوى متاح بموجب <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">الترخيص الحكومي المفتوح (الإصدار v3.0)</a>، ما لم ينص على خلاف ذلك
90
+ navigation_links:
90
91
  support_links: روابط الدعم
91
92
  layout_for_public:
92
93
  account_layout:
@@ -83,6 +83,7 @@ az:
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/">© Crown copyright</a>
85
85
  licence_html: Bütün məzmunlar <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">v3.0 Açıq dövlət lisenziyasına əsasən mövcuddur</a>(başqa cür nəzərdə tutulmuş hallar istisna olmaqla)
86
+ navigation_links:
86
87
  support_links: Dəstək keçidləri
87
88
  layout_for_public:
88
89
  account_layout:
@@ -90,6 +90,7 @@ be:
90
90
  layout_footer:
91
91
  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>
92
92
  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>, калі не паказана іншае
93
+ navigation_links:
93
94
  support_links: Дапаможныя спасылкі
94
95
  layout_for_public:
95
96
  account_layout:
@@ -88,6 +88,7 @@ bg:
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/">© 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">Open Government Licence v3.0</a>, освен ако не е посочено друго
91
+ navigation_links:
91
92
  support_links: Помощни линкове
92
93
  layout_for_public:
93
94
  account_layout:
@@ -85,6 +85,7 @@ bn:
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/">© ক্রাউন কপিরাইট</a>
87
87
  licence_html: শুধুমাত্র অন্যভাবে বর্ণিত থাকা ছাড়া, সকল তথ্য <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">ওপেন গভর্নমেন্ট লাইসেন্স v3.0</a>-এর অধীনে উপলভ্য
88
+ navigation_links:
88
89
  support_links: সহায়তার লিংক
89
90
  layout_for_public:
90
91
  account_layout:
@@ -89,6 +89,7 @@ cs:
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/">© Crown copyright</a>
91
91
  licence_html: Veškerý obsah je k dispozici pod <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>, pokud není uvedeno jinak
92
+ navigation_links:
92
93
  support_links: Odkazy na podporu
93
94
  layout_for_public:
94
95
  account_layout:
@@ -88,6 +88,7 @@ cy:
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/">© Hawlfraint y Goron</a>
90
90
  licence_html: Mae'r holl gynnwys ar gael o dan <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Drwydded Agored y Llywodraeth v3.0</a>, ac eithrio ble nodir yn wahanol
91
+ navigation_links:
91
92
  support_links: Dolenni cefnogi
92
93
  layout_for_public:
93
94
  account_layout:
@@ -85,6 +85,7 @@ da:
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/">© Krown copyright</a>
87
87
  licence_html: Alt indhold er tilgængeligt i henhold til <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">åben Forvaltning Licens v3.0</a>, medmindre andet er angivet.
88
+ navigation_links:
88
89
  support_links: Støtte links
89
90
  layout_for_public:
90
91
  account_layout:
@@ -88,6 +88,7 @@ de:
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/">© Crown copyright</a>
90
90
  licence_html: Alle Inhalte stehen unter der <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>, sofern nicht anders angegeben.
91
+ navigation_links:
91
92
  support_links: Links zur Unterstützung
92
93
  layout_for_public:
93
94
  account_layout:
@@ -86,6 +86,7 @@ dr:
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/">© 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">Open Government Licence v3.0</a>, موجود است، مگر در مواردی که خلاف آن ذکر شده باشد.
89
+ navigation_links:
89
90
  support_links: لنک های حمایوی
90
91
  layout_for_public:
91
92
  account_layout:
@@ -84,6 +84,7 @@ el:
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</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:
@@ -83,6 +83,59 @@ en:
83
83
  layout_footer:
84
84
  copyright_html: <a class="govuk-footer__link govuk-footer__copyright-logo" href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">© Crown copyright</a>
85
85
  licence_html: All content is available under the <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
86
+ navigation_links:
87
+ - title: Topics
88
+ menu_contents:
89
+ - text: Benefits
90
+ href: "/browse/benefits"
91
+ - text: Births, death, marriages and care
92
+ href: "/browse/births-deaths-marriages"
93
+ - text: Business and self-employed
94
+ href: "/browse/business"
95
+ - text: Childcare and parenting
96
+ href: "/browse/childcare-parenting"
97
+ - text: Citizenship and living in the UK
98
+ href: "/browse/citizenship"
99
+ - text: Crime, justice and the law
100
+ href: "/browse/justice"
101
+ - text: Disabled people
102
+ href: "/browse/disabilities"
103
+ - text: Driving and transport
104
+ href: "/browse/driving"
105
+ - text: Education and learning
106
+ href: "/browse/education"
107
+ - text: Employing people
108
+ href: "/browse/employing-people"
109
+ - text: Environment and countryside
110
+ href: "/browse/environment-countryside"
111
+ - text: Housing and local services
112
+ href: "/browse/housing-local-services"
113
+ - text: Money and tax
114
+ href: "/browse/tax"
115
+ - text: Passports, travel and living abroad
116
+ href: "/browse/abroad"
117
+ - text: Visas and immigration
118
+ href: "/browse/visas-immigration"
119
+ - text: Working, jobs and pensions
120
+ href: "/browse/working"
121
+ - title: Government activity
122
+ menu_contents:
123
+ - text: Departments
124
+ href: "/government/organisations"
125
+ - text: News
126
+ href: "/search/news-and-communications"
127
+ - text: Guidance and regulation
128
+ href: "/search/guidance-and-regulation"
129
+ - text: Research and statistics
130
+ href: "/search/research-and-statistics"
131
+ - text: Policy papers and consultations
132
+ href: "/search/policy-papers-and-consultations"
133
+ - text: Transparency
134
+ href: "/search/transparency-and-freedom-of-information-releases"
135
+ - text: How government works
136
+ href: "/government/how-government-works"
137
+ - text: Get involved
138
+ href: "/government/get-involved"
86
139
  support_links: Support links
87
140
  layout_for_public:
88
141
  account_layout:
@@ -122,8 +175,6 @@ en:
122
175
  href: "/browse/childcare-parenting"
123
176
  - label: Citizenship and living in the UK
124
177
  href: "/browse/citizenship"
125
- - label: Coronavirus (COVID‑19)
126
- href: "/coronavirus"
127
178
  - label: Crime, justice and the law
128
179
  href: "/browse/justice"
129
180
  - label: Disabled people
@@ -235,7 +286,7 @@ en:
235
286
  link_text: Check what you need to do
236
287
  title: Brexit
237
288
  ukraine:
238
- link_path: "/government/topical-events/russian-invasion-of-ukraine-uk-government-response"
289
+ link_path: "https://ukstandswithukraine.campaign.gov.uk/"
239
290
  link_text: Find out about the UK’s response
240
291
  title: Invasion of Ukraine
241
292
  world_locations: World locations
@@ -84,6 +84,7 @@ es-419:
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: Todos los contenidos están disponibles bajo la <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Licencia Gubernamental Abierta v3.0</a>, salvo que se indique lo contrario
87
+ navigation_links:
87
88
  support_links: Enlaces de ayuda
88
89
  layout_for_public:
89
90
  account_layout:
@@ -84,6 +84,7 @@ es:
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/">© Derechos de autor de la corona</a>
86
86
  licence_html: Todo el contenido está disponible bajo la <a class='govuk-footer__link' href='https://www.nationalarchives.gov.uk/doc/open-government-license/version/3/" rel='license'>Licencia de Gobierno Abierto v3,0</a>, excepto donde se indique lo contrario
87
+ navigation_links:
87
88
  support_links: Enlaces de soporte
88
89
  layout_for_public:
89
90
  account_layout:
@@ -87,6 +87,7 @@ et:
87
87
  layout_footer:
88
88
  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/">© Crowni autoriõigus</a>
89
89
  licence_html: Kogu sise on saadaval <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> all, kui pole märgitud teisiti
90
+ navigation_links:
90
91
  support_links: Tugiteenuste lingid
91
92
  layout_for_public:
92
93
  account_layout:
@@ -82,6 +82,7 @@ fa:
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:
@@ -86,6 +86,7 @@ fi:
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/">© Kruunun tekijänoikeus</a>
88
88
  licence_html: Kaikki sisältö on saatavilla osoitteessa <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Avoimen hallinnon lisenssi v3.0</a>, ellei toisin mainita
89
+ navigation_links:
89
90
  support_links: Tukilinkit
90
91
  layout_for_public:
91
92
  account_layout:
@@ -84,6 +84,7 @@ fr:
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/">© Copyright de la Couronne</a>
86
86
  licence_html: L'ensemble du contenu est disponible en vertu de la <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>, sauf indication contraire.
87
+ navigation_links:
87
88
  support_links: Liens d'assistance
88
89
  layout_for_public:
89
90
  account_layout:
@@ -86,6 +86,7 @@ gd:
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/">© Crown copyright</a>
88
88
  licence_html: Tá an t-ábhar go léir ar fáil faoi <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Oibriú saor in aisce v3.0</a>, mura luaitear a mhalairt
89
+ navigation_links:
89
90
  support_links: Nasc tacaíochta
90
91
  layout_for_public:
91
92
  account_layout: