%= 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") %> <%= favicon_link_tag asset_path("images/govuk-mask-icon.svg"), rel: "mask-icon", type: "image/svg", color: "#0b0c0c" %> <%= favicon_link_tag asset_path("images/govuk-apple-touch-icon.png"), rel: "apple-touch-icon", type: "image/png" %> <%= favicon_link_tag asset_path("images/govuk-apple-touch-icon-152x152.png"), rel: "apple-touch-icon", type: "image/png", size: "152x152" %> <%= favicon_link_tag asset_path("images/govuk-apple-touch-icon-167x167.png"), rel: "apple-touch-icon", type: "image/png", size: "167x167" %> <%= favicon_link_tag asset_path("images/govuk-apple-touch-icon-180x180.png"), rel: "apple-touch-icon", type: "image/png", size: "180x180" %> <%= 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" %> <%= javascript_include_tag "application", defer: true %> <% if content_for?(:head) %> <%= yield(:head) %> <% end %> <%= capybara_lockstep if defined?(Capybara::Lockstep) %> <% if Rails.env.development? %> <% end %>
<%= govuk_skip_link %> <%= govuk_header( classes: "app-header", service_url: current_user.nil? ? "/" : "/logs", navigation_classes: "govuk-header__navigation--end" ) do |component| component.product_name(name: t("service_name")) if current_user.nil? component.navigation_item(text: "Sign in", href: user_session_path) else component.navigation_item(text: "Your account", href: account_path) component.navigation_item(text: "Sign out", href: destroy_user_session_path) end end %> <%= govuk_phase_banner( classes: "govuk-width-container", tag: { text: "Beta" }, text: "This is a new service – help us improve it by giving us your feedback (opens in a new tab)".html_safe, ) %> <% if !current_user.nil? %> <% if current_user.support? %> <% items = [ { name: "Organisations", url: "/organisations", comparable_urls: ["/details", "/organisations"] }, { name: "Users", url: "/users", comparable_urls: ["/users", "/account"] }, { name: "Logs", url: case_logs_path, comparable_urls: ["/logs"] }, ] %> <% else %> <% items = [ { name: "Logs", url: case_logs_path, comparable_urls: ["/logs"] }, { name: "Users", url: users_organisation_path(current_user.organisation), comparable_urls: ["/users", "/account"] }, { name: "About your organisation", url: "/organisations/#{current_user.organisation.id}", comparable_urls: ["/details"] }, ] %> <% end %> <%= render PrimaryNavigationComponent.new(items:) %> <% end %>