From 5950f6c93c3a37b77de156b48b69f6aad243eafa Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Wed, 22 Jul 2020 10:04:32 +0200 Subject: [PATCH] fix demarches active link when action of procedures_controller --- app/views/layouts/_new_header.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_new_header.haml b/app/views/layouts/_new_header.haml index 28c78bfc9..41b147d98 100644 --- a/app/views/layouts/_new_header.haml +++ b/app/views/layouts/_new_header.haml @@ -29,7 +29,7 @@ %ul.header-tabs - if current_instructeur.procedures.count > 0 %li - = active_link_to "Démarches", instructeur_procedures_path, active: controller_name == 'dossiers', class: 'tab-link' + = active_link_to "Démarches", instructeur_procedures_path, active: ['dossiers','procedures'].include?(controller_name), class: 'tab-link' - if current_instructeur.avis.count > 0 %li = active_link_to instructeur_all_avis_path, active: controller_name == 'avis', class: 'tab-link' do