">
diff --git a/app/views/layouts/design_system.html.erb b/app/views/layouts/design_system.html.erb
index 0705bc97580f..96596e2aae67 100644
--- a/app/views/layouts/design_system.html.erb
+++ b/app/views/layouts/design_system.html.erb
@@ -28,7 +28,11 @@
- <%= render partial: "shared/header" %>
+ <% if show_new_header? %>
+ <%= render partial: "shared/header" %>
+ <% else %>
+ <%= render partial: "shared/legacy_header" %>
+ <% end %>
diff --git a/app/views/shared/_header.html.erb b/app/views/shared/_header.html.erb
index 84ca8de99671..a7efb77b4509 100644
--- a/app/views/shared/_header.html.erb
+++ b/app/views/shared/_header.html.erb
@@ -9,47 +9,43 @@
navbar-default
navbar-inverse
navbar-static-top
- <% if !t('admin.whats_new.show_banner') && admin_template %>add-bottom-margin<% end %>
- <% if environment_style %>environment-indicator<% end %>" role="banner">
-
-
-
-
+ <% if !t('admin.whats_new.show_banner') && admin_template %>add-bottom-margin
+ <% end %>
+ <% if environment %>environment-indicator
+ <% end %>" role="banner">
+ <%= render "govuk_publishing_components/components/layout_header", {
+ product_name: "Whitehall Publisher",
+ environment: environment,
+ navigation_items: [
+ {
+ text: "Dashboard",
+ href: admin_root_path,
+ },
+ {
+ text: "View website",
+ href: Whitehall.public_root,
+ },
+ {
+ text: "Switch app",
+ href: Plek.external_url_for("signon"),
+ },
+ *(
+ if user_signed_in?
+ [{
+ text: current_user.name,
+ href: admin_user_path(current_user),
+ },
+ {
+ text: "Logout",
+ href: "/auth/gds/sign_out",
+ }]
+ end),
+ {
+ text: "All users",
+ href: admin_users_path,
+ },
+ ],
+ } %>