|
6 | 6 |
|
7 | 7 | <div class="govuk-grid-row">
|
8 | 8 | <div class="govuk-grid-column-two-thirds">
|
9 |
| - <% title_and_context = @content_item.brexit_hub_page? ? { title: @content_item.title } : @content_item.title_and_context %> |
| 9 | + <% title_and_context = @content_item.brexit_link ? { title: @content_item.title } : @content_item.title_and_context %> |
10 | 10 | <%= render 'govuk_publishing_components/components/title', title_and_context %>
|
11 | 11 | </div>
|
12 | 12 | <%= render 'shared/translations' %>
|
13 | 13 | <div class="govuk-grid-column-two-thirds">
|
14 |
| - <% if @content_item.brexit_hub_page? %> |
| 14 | + <% if @content_item.brexit_link %> |
15 | 15 | <div class="govuk-body-l govuk-!-margin-bottom-7">
|
16 |
| - <% link_text = @content_item.brexit_citizen_page? ? "Brexit guidance for businesses" : "Brexit guidance for individuals and families" %> |
17 |
| - <% link_path = @content_item.brexit_citizen_page? ? @content_item.brexit_business_page : @content_item.brexit_citizen_page %> |
18 | 16 | <p class="govuk-body">
|
19 |
| - There's different <%= link_to link_text, link_path %>. |
| 17 | + <%= I18n.t("brexit.heading_prefix") %> <%= link_to @content_item.brexit_link[:text], @content_item.brexit_link[:path] %>. |
20 | 18 | </p>
|
21 | 19 | </div>
|
22 | 20 | <% else %>
|
|
25 | 23 | </div>
|
26 | 24 | </div>
|
27 | 25 |
|
28 |
| -<%= render 'shared/publisher_metadata_with_logo' unless @content_item.brexit_hub_page? %> |
| 26 | +<%= render 'shared/publisher_metadata_with_logo' unless @content_item.brexit_link %> |
29 | 27 | <%= render 'shared/history_notice', content_item: @content_item %>
|
30 | 28 | <%= render 'govuk_publishing_components/components/notice', @content_item.withdrawal_notice_component %>
|
31 | 29 |
|
|
37 | 35 | <%= render "govuk_publishing_components/components/print_link", {
|
38 | 36 | margin_top: 0,
|
39 | 37 | margin_bottom: 6,
|
40 |
| - } unless @content_item.brexit_hub_page? %> |
| 38 | + } unless @content_item.brexit_link %> |
41 | 39 |
|
42 | 40 | <%= render 'govuk_publishing_components/components/govspeak', {} do %>
|
43 | 41 | <%= raw(@content_item.govspeak_body[:content]) %>
|
|
48 | 46 | published: @content_item.published,
|
49 | 47 | last_updated: @content_item.updated,
|
50 | 48 | history: @content_item.history
|
51 |
| - } unless @content_item.brexit_hub_page? %> |
| 49 | + } unless @content_item.brexit_link %> |
52 | 50 | </div>
|
53 | 51 | <% end %>
|
54 | 52 | <%= render "govuk_publishing_components/components/print_link", {
|
55 | 53 | margin_top: 0,
|
56 | 54 | margin_bottom: 6,
|
57 |
| - } unless @content_item.brexit_hub_page? %> |
| 55 | + } unless @content_item.brexit_link %> |
58 | 56 | </div>
|
59 | 57 | <%= render 'shared/sidebar_navigation' %>
|
60 | 58 | </div>
|
|
0 commit comments