From 97c8f76635b4ca1f99d0567c0524cdfaba5bbe60 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 29 Jun 2021 09:39:44 +0000 Subject: [PATCH] views: show the 'Avis' tab if needed on all profiles --- app/views/layouts/_header.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/layouts/_header.haml b/app/views/layouts/_header.haml index a8ccf9f39..80e64b4d5 100644 --- a/app/views/layouts/_header.haml +++ b/app/views/layouts/_header.haml @@ -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'