Merge pull request #5404 from betagouv/fix-menu-active-link

instructeurs: fix demarches active link
This commit is contained in:
Keirua 2020-07-27 15:04:52 +02:00 committed by GitHub
commit 29aae2da08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,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