fix active_links in header

This commit is contained in:
Christophe Robillard 2020-06-25 18:32:13 +02:00
parent 63dd71aed4
commit 8f2b09ae06

View file

@ -29,10 +29,10 @@
%ul.header-tabs
- if current_instructeur.procedures.count > 0
%li
= active_link_to "Démarches", instructeur_procedures_path, active: :inclusive, class: 'tab-link'
= active_link_to "Démarches", instructeur_procedures_path, active: /^((?!avis).)*$/, class: 'tab-link'
- if current_instructeur.avis.count > 0
%li
= active_link_to instructeur_all_avis_path, active: :inclusive, class: 'tab-link' do
= active_link_to instructeur_all_avis_path, active: /avis/, class: 'tab-link' do
Avis
- avis_counter = current_instructeur.avis.without_answer.count
- if avis_counter > 0