From 0f1236aa7a97f8231f6ce708d9cd4332913ecaad Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 26 Sep 2016 14:11:57 +0200 Subject: [PATCH] Fix test --- app/views/layouts/_navbar.html.haml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml index 439eee8c4..5880764bb 100644 --- a/app/views/layouts/_navbar.html.haml +++ b/app/views/layouts/_navbar.html.haml @@ -7,10 +7,14 @@ %a{href: '/'} = image_tag('logo-tps.png', class: 'logo') -%a{href: (current_gestionnaire.procedure_filter.empty? ? '/' : backoffice_dossiers_procedure_path(current_gestionnaire.procedure_filter)), class: 'btn btn-md'} - -if gestionnaire_signed_in? || user_signed_in? +- if gestionnaire_signed_in? + %a{href: (current_gestionnaire.procedure_filter.empty? ? '/' : backoffice_dossiers_procedure_path(current_gestionnaire.procedure_filter)), class: 'btn btn-md'} Mes Dossiers - -elsif administrateur_signed_in? +- elsif user_signed_in? + %a{href: '/', class: 'btn btn-md'} + Mes Dossiers +- elsif administrateur_signed_in? + %a{href: '/', class: 'btn btn-md'} Mes Procédures #sign_out