Browse Source

Remove multiple header containers

pull/117/head
Paul Robert Lloyd 3 years ago
parent
commit
7bd7bc1aae
  1. 29
      app/views/layouts/application.html.erb

29
app/views/layouts/application.html.erb

@ -33,21 +33,20 @@
<a href="#main-content" class="govuk-skip-link">Skip to main content</a> <a href="#main-content" class="govuk-skip-link">Skip to main content</a>
<header class="govuk-header" role="banner" data-module="govuk-header"> <%= render GovukComponent::HeaderComponent.new(
<%= render GovukComponent::HeaderComponent.new( logotype: 'GOV.UK',
logotype: 'GOV.UK', service_name: 'Share Lettings and Sales for Social Housing in England Data with DLUHC',
service_name: 'Share Lettings and Sales for Social Housing in England Data with DLUHC', service_url: '/'
service_url: '/' ) do |component|
) do |component| if current_user.nil?
if current_user.nil? component.navigation_item(text: 'Case logs', href: '/case_logs')
component.navigation_item(text: 'Case logs', href: '/case_logs') elsif
elsif component.navigation_item(text: 'Your account', href: '/users/account')
component.navigation_item(text: 'Your account', href: '/users/account') component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: {:method => :delete})
component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: {:method => :delete}) end
end end
end %>
%>
</header>
<aside class="govuk-width-container"> <aside class="govuk-width-container">
<%= render GovukComponent::PhaseBannerComponent.new( <%= render GovukComponent::PhaseBannerComponent.new(
tag: { text: 'Beta' }, tag: { text: 'Beta' },

Loading…
Cancel
Save