From bfd4ae9d50b750d29a7d5d79a78d01d40b106d9a Mon Sep 17 00:00:00 2001 From: Eric Leroy-Terquem Date: Mon, 18 Mar 2024 10:50:51 +0100 Subject: [PATCH] refacto(dossier list): use model method en_construction_ou_instruction? --- app/views/users/dossiers/_dossiers_list.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/users/dossiers/_dossiers_list.html.haml b/app/views/users/dossiers/_dossiers_list.html.haml index 566447286..ee0ae78f4 100644 --- a/app/views/users/dossiers/_dossiers_list.html.haml +++ b/app/views/users/dossiers/_dossiers_list.html.haml @@ -58,13 +58,13 @@ = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.brouillon.internal_procedure', link: commencer_path(dossier.procedure.replaced_by_procedure.path)).html_safe - elsif dossier.brouillon? && dossier.procedure.closing_reason_other? = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.brouillon.other', link: closing_details_path(dossier.procedure.path)).html_safe - - elsif (dossier.en_construction? || dossier.en_instruction?) && dossier.procedure.closing_reason_internal_procedure? + - elsif dossier.en_construction_ou_instruction? && dossier.procedure.closing_reason_internal_procedure? = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.internal_procedure') - - elsif (dossier.en_construction? || dossier.en_instruction?) && dossier.procedure.closing_reason_other? + - elsif dossier.en_construction_ou_instruction? && dossier.procedure.closing_reason_other? = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.other', link: closing_details_path(dossier.procedure.path)).html_safe - - elsif (dossier.termine? && dossier.procedure.closing_reason == Procedure.closing_reasons.fetch(:internal_procedure)) + - elsif dossier.termine? && dossier.procedure.closing_reason_internal_procedure? = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.internal_procedure', link: commencer_path(dossier.procedure.replaced_by_procedure.path)).html_safe - - elsif (dossier.termine? && dossier.procedure.closing_reason == Procedure.closing_reasons.fetch(:other)) + - elsif dossier.termine? && dossier.procedure.closing_reason_other? = I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.other', link: closing_details_path(dossier.procedure.path)).html_safe