%= csrf_meta_tags %> <%= csp_meta_tag %> <%= tag.meta name: "viewport", content: "width=device-width, initial-scale=1" %> <%= tag.meta property: "og:image", content: asset_path("images/govuk-opengraph-image.png") %> <%= tag.meta name: "theme-color", content: "#0b0c0c" %> <%= favicon_link_tag asset_path("images/favicon.ico"), type: nil, sizes: "48x48" %> <%= favicon_link_tag asset_path("images/favicon.svg"), type: "image/svg+xml", sizes: "any" %> <%= favicon_link_tag asset_path("images/govuk-icon-mask.svg"), rel: "mask-icon", color: "#0b0c0c", type: nil %> <%= favicon_link_tag asset_path("images/govuk-icon-180.png"), rel: "apple-touch-icon", type: nil %> <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "vendor/html5shiv.min.js" %> <%= javascript_include_tag "vendor/polyfill-output-value.js" %> <%= javascript_include_tag "vendor/outerHTML.js" %> <% gtm_container = get_gtm_container %> <% gtm_id = get_gtm_id %> <% if cookies[:accept_analytics_cookies] == "on" %> <% else %> <% end %> <%= javascript_include_tag "application", defer: true %> <% if content_for?(:head) %> <%= yield(:head) %> <% end %> <%= capybara_lockstep if defined?(Capybara::Lockstep) %> <% if Rails.env.development? %> <% end %> <% if Rails.env.production? && ENV["APP_HOST"].present? %> <% end %>
<% if cookies[:accept_analytics_cookies] == "on" %> <% end %> <% unless cookies[:accept_analytics_cookies] || current_page?(cookies_path) %> <%= render "cookies/banner" %> <% end %> <%= govuk_skip_link %> <%= govuk_header( classes: govuk_header_classes(current_user), homepage_url: root_path, navigation_classes: "govuk-header__navigation--end", ) do |component| component.with_product_name(name: t("service_name")) unless FeatureToggle.service_moved? || FeatureToggle.service_unavailable? if current_user.nil? component.with_navigation_item(text: "Sign in", href: user_session_path) else component.with_navigation_item(text: "Your account", href: account_path) component.with_navigation_item(text: "Sign out", href: destroy_user_session_path) end end end %> <% if notifications_to_display? %> <%= render "notifications/notification_banner" %> <% end %> <% feedback_link = govuk_link_to "giving us your feedback (opens in a new tab)", t("feedback_form"), rel: "noreferrer noopener", target: "_blank" %> <%= govuk_phase_banner( classes: "govuk-width-container", tag: govuk_phase_banner_tag(current_user), text: "This is a new service – help us improve it by #{feedback_link}".html_safe, ) %> <% if current_user.present? %> <%= render PrimaryNavigationComponent.new( items: primary_items(request.path, current_user), ) %> <% end %>