modify layout

This commit is contained in:
kara Diaby 2021-03-22 10:07:51 +01:00
parent 2930de1015
commit d17fdfec77

View file

@ -32,11 +32,13 @@
- if current_instructeur.procedures.count > 0 - if current_instructeur.procedures.count > 0
%li %li
= active_link_to "Démarches", instructeur_procedures_path, active: ['dossiers','procedures'].include?(controller_name), 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 - if nav_bar_profile == :expert && expert_signed_in?
- if current_expert.avis.count > 0
%ul.header-tabs
%li %li
= active_link_to instructeur_all_avis_path, active: controller_name == 'avis', class: 'tab-link' do = active_link_to expert_all_avis_path, active: controller_name == 'avis', class: 'tab-link' do
Avis Avis
- avis_counter = current_instructeur.avis.without_answer.count - avis_counter = current_expert.avis.without_answer.count
- if avis_counter > 0 - if avis_counter > 0
%span.badge.warning= avis_counter %span.badge.warning= avis_counter