From 7bd7bc1aae7fad1ee61f44b72a42fbeb390bf578 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Mon, 29 Nov 2021 16:52:04 +0000 Subject: [PATCH 01/12] Remove multiple header containers --- app/views/layouts/application.html.erb | 29 +++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 8f043f6ee..7b3b968fc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -33,21 +33,20 @@ Skip to main content - + <%= render GovukComponent::HeaderComponent.new( + logotype: 'GOV.UK', + service_name: 'Share Lettings and Sales for Social Housing in England Data with DLUHC', + service_url: '/' + ) do |component| + if current_user.nil? + component.navigation_item(text: 'Case logs', href: '/case_logs') + elsif + component.navigation_item(text: 'Your account', href: '/users/account') + component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: {:method => :delete}) + end + end + %> +