From 652e95d0c5acb838e89fc1778f9e88d28a3eb5e4 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 28 Oct 2019 15:28:14 +0100 Subject: [PATCH] Add link from instructeur procedure view --- app/views/instructeurs/procedures/show.html.haml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/instructeurs/procedures/show.html.haml b/app/views/instructeurs/procedures/show.html.haml index 302ce3a95..229336345 100644 --- a/app/views/instructeurs/procedures/show.html.haml +++ b/app/views/instructeurs/procedures/show.html.haml @@ -13,6 +13,12 @@ | = link_to 'statistiques', stats_instructeur_procedure_path(@procedure), class: 'header-link', data: { turbolinks: false } # Turbolinks disabled for Chartkick. See Issue #350 + - if @procedure.routee? + | + - if current_administrateur.present? && current_administrateur.owns?(@procedure) + = link_to 'instructeurs', procedure_groupe_instructeurs_path(@procedure), class: 'header-link' + - else + = link_to 'instructeurs', instructeur_groupes_path(@procedure), class: 'header-link' %ul.tabs = tab_item('à suivre',