refacto(dossier list): do not use html safe

This commit is contained in:
Eric Leroy-Terquem 2024-03-25 11:14:39 +01:00
parent bfd4ae9d50
commit d01cd3a310
No known key found for this signature in database
GPG key ID: ECE60B4C1FA2ABB3
3 changed files with 18 additions and 18 deletions

View file

@ -55,17 +55,17 @@
- c.with_body do
%p
- if dossier.brouillon? && dossier.procedure.closing_reason_internal_procedure?
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.brouillon.internal_procedure', link: commencer_path(dossier.procedure.replaced_by_procedure.path)).html_safe
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.brouillon.internal_procedure_html', link: commencer_path(dossier.procedure.replaced_by_procedure.path))
- 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
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.brouillon.other_html', link: closing_details_path(dossier.procedure.path))
- 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')
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.internal_procedure_html')
- 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
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.en_cours.other_html', link: closing_details_path(dossier.procedure.path))
- 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
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.internal_procedure_html', link: commencer_path(dossier.procedure.replaced_by_procedure.path))
- 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
= I18n.t('views.users.dossiers.dossiers_list.procedure_closed.termine.other_html', link: closing_details_path(dossier.procedure.path))
- if dossier.pending_correction?

View file

@ -509,14 +509,14 @@ en:
deleted_badge: Deleted
procedure_closed:
brouillon:
internal_procedure: This procedure is closed, you cannot submit this file. We invite you to submit a new one on the <a href="%{link}" target="_blank" rel="noopener noreferrer">procedure</a> which replaces it
other: This process is closed, you cannot submit this file. More information <a href="%{link}" target="_blank" rel="noopener noreferrer">here</a>
internal_procedure_html: This procedure is closed, you cannot submit this file. We invite you to submit a new one on the <a href="%{link}" target="_blank" rel="noopener noreferrer">procedure</a> which replaces it
other_html: This process is closed, you cannot submit this file. More information <a href="%{link}" target="_blank" rel="noopener noreferrer">here</a>
en_cours:
internal_procedure: This procedure is closed. Your file has been submitted and can be investigated by the administration
other: "This procedure is closed. Your file has been submitted and can be processed by the administration. More information <a href=%{link} target=_blank rel=noopener noreferrer>here</a>"
internal_procedure_html: This procedure is closed. Your file has been submitted and can be investigated by the administration
other_html: "This procedure is closed. Your file has been submitted and can be processed by the administration. More information <a href=%{link} target=_blank rel=noopener noreferrer>here</a>"
termine:
internal_procedure: This procedure is closed and replaced by <a href="%{link}" target="_blank" rel="noopener noreferrer">this procedure</a>. Your file has been processed by the administration
other: This process is closed, you cannot submit a new file. More information <a href="%{link}" target="_blank" rel="noopener noreferrer">here</a>
internal_procedure_html: This procedure is closed and replaced by <a href="%{link}" target="_blank" rel="noopener noreferrer">this procedure</a>. Your file has been processed by the administration
other_html: This process is closed, you cannot submit a new file. More information <a href="%{link}" target="_blank" rel="noopener noreferrer">here</a>
transfers:
sender_from_support: Technical support
sender_demande_en_cours: "A transfer request is pending on file Nº %{id} to %{email}"

View file

@ -504,14 +504,14 @@ fr:
no_result_reset_filter: Réinitialiser les filtres
procedure_closed:
brouillon:
internal_procedure: Cette démarche est close, vous ne pouvez pas déposer ce dossier. Nous vous invitons à en déposer un nouveau sur la <a href="%{link}" target="_blank" rel="noopener noreferrer">démarche</a> qui la remplace
other: Cette démarche est close, vous ne pouvez pas déposer ce dossier. Plus d'informations <a href="%{link}" target="_blank" rel="noopener noreferrer">ici</a>
internal_procedure_html: Cette démarche est close, vous ne pouvez pas déposer ce dossier. Nous vous invitons à en déposer un nouveau sur la <a href="%{link}" target="_blank" rel="noopener noreferrer">démarche</a> qui la remplace
other_html: Cette démarche est close, vous ne pouvez pas déposer ce dossier. Plus d'informations <a href="%{link}" target="_blank" rel="noopener noreferrer">ici</a>
en_cours:
internal_procedure: Cette démarche est close. Votre dossier est bien déposé et peut être instruit par l'administration
other: "Cette démarche est close. Votre dossier est bien déposé et peut être instruit par l'administration. Plus d'informations <a href=%{link} target=_blank rel=noopener noreferrer>ici</a>"
internal_procedure_html: Cette démarche est close. Votre dossier est bien déposé et peut être instruit par l'administration
other_html: "Cette démarche est close. Votre dossier est bien déposé et peut être instruit par l'administration. Plus d'informations <a href=%{link} target=_blank rel=noopener noreferrer>ici</a>"
termine:
internal_procedure: Cette démarche est close et remplacée par <a href="%{link}" target="_blank" rel="noopener noreferrer">cette démarche</a>. Votre dossier a été traité par l'administration
other: Cette démarche est close, vous ne pourrez pas déposer de nouveau dossier à partir du lien de la démarche. Plus d'informations <a href="%{link}" target="_blank" rel="noopener noreferrer">ici</a>
internal_procedure_html: Cette démarche est close et remplacée par <a href="%{link}" target="_blank" rel="noopener noreferrer">cette démarche</a>. Votre dossier a été traité par l'administration
other_html: Cette démarche est close, vous ne pourrez pas déposer de nouveau dossier à partir du lien de la démarche. Plus d'informations <a href="%{link}" target="_blank" rel="noopener noreferrer">ici</a>
pending_correction: Ce dossier attend vos corrections. Consultez les modifications à apporter dans la messagerie.
depose_at: Déposé le %{date}
created_at: Créé le %{date}