views: show the 'Avis' tab if needed on all profiles

This commit is contained in:
Pierre de La Morinerie 2021-06-29 09:39:44 +00:00
parent 4422d989a6
commit 97c8f76635

View file

@ -40,6 +40,8 @@
%ul.header-tabs
%li
= active_link_to "Dossiers", dossiers_path, active: :inclusive, class: 'tab-link'
- if current_user.expert && current_expert.avis_summary[:total] > 0
= render partial: 'layouts/header/avis_tab', locals: { current_expert: current_expert }
%ul.header-right-content
- if params[:controller] == 'recherche'