|
2 | 2 | <%= stylesheet_link_tag "views/_worldwide-organisation", media: "all" %> |
3 | 3 | <% end %> |
4 | 4 |
|
| 5 | +<% if params["nav"] == "service" %> |
| 6 | + <% content_for :before_content do %> |
| 7 | + <%= render "govuk_publishing_components/components/service_navigation", { |
| 8 | + navigation_items: [ |
| 9 | + { |
| 10 | + text: "British Embassy Paris", |
| 11 | + href: "/world/organisations/british-embassy-paris?nav=service", |
| 12 | + active: true, |
| 13 | + }, |
| 14 | + { |
| 15 | + text: "Office opening times", |
| 16 | + href: "/world/organisations/british-embassy-paris/office/british-embassy-paris?nav=service", |
| 17 | + }, |
| 18 | + { |
| 19 | + text: "Complaints procedure", |
| 20 | + href: "/world/organisations/british-embassy-paris/about/complaints-procedure?nav=service", |
| 21 | + }, |
| 22 | + { |
| 23 | + text: "Working for British Embassy Paris", |
| 24 | + href: "/world/organisations/british-embassy-paris/about/recruitment?nav=service", |
| 25 | + }, |
| 26 | + ], |
| 27 | + full_width: false, |
| 28 | + } %> |
| 29 | + <% end %> |
| 30 | +<% end %> |
| 31 | + |
| 32 | +<% if params["nav"] == "missions" %> |
| 33 | + <% content_for :before_content do %> |
| 34 | + <%= render partial: "worldwide_organisation/navigation", locals: { :block => OpenStruct.new({ :name => "British Embassy Paris", |
| 35 | +:links => [ |
| 36 | + { text: "About British Embassy Paris", |
| 37 | + href: "/world/organisations/british-embassy-paris?nav=missions" }, |
| 38 | + { text: "Office opening times", |
| 39 | + href: "/world/organisations/british-embassy-paris/office/british-embassy-paris?nav=missions" }, |
| 40 | + { text: "Complaints procedure", |
| 41 | + href: "/world/organisations/british-embassy-paris/about/complaints-procedure?nav=missions" }, |
| 42 | + { text: "Working for British Embassy Paris", |
| 43 | + href: "/world/organisations/british-embassy-paris/about/recruitment?nav=missions" }, |
| 44 | + |
| 45 | +] }) } %> |
| 46 | + <% end %> |
| 47 | +<% end %> |
| 48 | + |
| 49 | +<% if params["nav"] == "tabs" %> |
| 50 | + <% content_for :before_content do %> |
| 51 | + <div class="govuk-width-container govuk-!-margin-top-2"> |
| 52 | + <%= render "govuk_publishing_components/components/tabs", { |
| 53 | + as_links: true, |
| 54 | + tabs: [ |
| 55 | + { |
| 56 | + href: "/world/organisations/british-embassy-paris?nav=tabs", |
| 57 | + label: "British Embassy Paris", |
| 58 | + active: true, |
| 59 | + }, |
| 60 | + { |
| 61 | + href: "/world/organisations/british-embassy-paris/office/british-embassy-paris?nav=tabs", |
| 62 | + label: "Office opening times", |
| 63 | + active: false, |
| 64 | + }, |
| 65 | + { |
| 66 | + href: "/world/organisations/british-embassy-paris/about/complaints-procedure?nav=tabs", |
| 67 | + label: "Complaints procedure", |
| 68 | + active: false, |
| 69 | + }, |
| 70 | + { |
| 71 | + href: "/world/organisations/british-embassy-paris/about/recruitment?nav=tabs", |
| 72 | + label: "Work for this embassy", |
| 73 | + active: false, |
| 74 | + }, |
| 75 | + ], |
| 76 | + } %> |
| 77 | + </div> |
| 78 | + <% end %> |
| 79 | +<% end %> |
| 80 | + |
5 | 81 | <%= render partial: "worldwide_organisation/header", locals: { worldwide_organisation: @presenter, show_header_title: true } %> |
6 | 82 |
|
7 | 83 | <section class="govuk-grid-row" id="about-us"> |
|
11 | 87 | raw(@content_item.body) |
12 | 88 | end %> |
13 | 89 | </div> |
| 90 | + <aside class="govuk-grid-column-one-third"> |
| 91 | + <% if params["nav"] == "list" %> |
| 92 | + <h2 class="govuk-heading-s">In this section</h2> |
| 93 | + <ul class="gem-c-list govuk-list"> |
| 94 | + <li>British Embassy Paris |
| 95 | + <ul class="gem-c-list govuk-list govuk-list--bullet govuk-!-margin-left-2"> |
| 96 | + <li><a class='govuk-link' href='/world/organisations/british-embassy-paris/office/british-embassy-paris?nav=list'>Office opening times</a></li> |
| 97 | + <li><a class='govuk-link' href='/world/organisations/british-embassy-paris/about/complaints-procedure?nav=list'>Complaints Procedure</a></li> |
| 98 | + <li><a class='govuk-link' href='/world/organisations/british-embassy-paris/about/recruitment?nav=list'>Working for British Embassy Paris</a></li> |
| 99 | + </ul> |
| 100 | + </li> |
| 101 | + </ul> |
| 102 | + <% end %> |
| 103 | + <% if @presenter.social_media_accounts.any? %> |
14 | 104 |
|
15 | | - <% if @presenter.social_media_accounts.any? %> |
16 | | - <aside class="govuk-grid-column-one-third"> |
17 | | - <h2 class="govuk-heading-s"><%= t("worldwide_organisation.headings.follow_us") %></h2> |
18 | | - <%= render "govuk_publishing_components/components/share_links", { |
19 | | - track_as_follow: true, |
20 | | - links: @presenter.social_media_accounts.map do |account| |
21 | | - { |
22 | | - href: account["href"], |
23 | | - text: account["title"], |
24 | | - icon: account["service_type"], |
25 | | - } |
26 | | - end, |
27 | | - margin_bottom: 8, |
28 | | - } %> |
29 | | - </aside> |
30 | | - <% end %> |
| 105 | + <h2 class="govuk-heading-s"><%= t("worldwide_organisation.headings.follow_us") %></h2> |
| 106 | + <%= render "govuk_publishing_components/components/share_links", { |
| 107 | + track_as_follow: true, |
| 108 | + links: @presenter.social_media_accounts.map do |account| |
| 109 | + { |
| 110 | + href: account["href"], |
| 111 | + text: account["title"], |
| 112 | + icon: account["service_type"], |
| 113 | + } |
| 114 | + end, |
| 115 | + margin_bottom: 8, |
| 116 | + } %> |
| 117 | + |
| 118 | + <% end %> |
| 119 | + </aside> |
31 | 120 | </section> |
32 | 121 |
|
33 | 122 | <% if @presenter.show_our_people_section? %> |
|
0 commit comments