2018-12-28 16:16:41 +01:00
|
|
|
- dossier = Dossier.includes(:procedure).find_by(id: champ.to_s)
|
|
|
|
- if dossier
|
2019-08-06 11:02:54 +02:00
|
|
|
- path = dossier_linked_path(current_instructeur || current_user, dossier)
|
2018-12-28 16:16:41 +01:00
|
|
|
- if path.present?
|
2023-04-28 10:33:01 +02:00
|
|
|
%p= link_to("Dossier nº #{dossier.id}", path, target: '_blank', rel: 'noopener')
|
2018-12-28 16:16:41 +01:00
|
|
|
- else
|
2023-04-28 10:33:01 +02:00
|
|
|
%p Dossier nº #{dossier.id}
|
2018-12-28 16:16:41 +01:00
|
|
|
%br
|
2023-04-28 10:33:01 +02:00
|
|
|
%p= sanitize(dossier.text_summary)
|
2018-12-28 16:16:41 +01:00
|
|
|
- else
|
2023-04-28 10:33:01 +02:00
|
|
|
%p Pas de dossier associé
|