From 8d70f68146d4e2ffd3ba6caaf2a86b6d66859873 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 29 Jul 2024 14:48:35 +0200 Subject: [PATCH] fix(attestation): link to published v1 from v2 --- .../administrateurs/attestation_template_v2s/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/administrateurs/attestation_template_v2s/edit.html.haml b/app/views/administrateurs/attestation_template_v2s/edit.html.haml index 7c995e6b2..22b0a0fbe 100644 --- a/app/views/administrateurs/attestation_template_v2s/edit.html.haml +++ b/app/views/administrateurs/attestation_template_v2s/edit.html.haml @@ -20,7 +20,7 @@ tout en respectant la charte de l’état. Essayez-la et donnez-nous votre avis en nous envoyant un email à #{mail_to(Current.contact_email, subject: "Feedback attestation v2")}. %br - - if !@procedure.feature_enabled?(:attestation_v2) + - if !@procedure.feature_enabled?(:attestation_v2) || @procedure.attestation_templates.v1.published.any? %strong Les attestations délivrées suivent encore l’ancien format : l’activation des attestations basées sur ce format sera bientôt disponible. %br