2018-12-28 16:16:41 +01:00
|
|
|
- dossier = Dossier.includes(:procedure).find_by(id: champ.to_s)
|
|
|
|
- if dossier
|
2018-12-28 17:22:51 +01:00
|
|
|
- path = dossier_linked_path(current_gestionnaire || current_user, dossier)
|
2018-12-28 16:16:41 +01:00
|
|
|
- if path.present?
|
|
|
|
= link_to("Dossier nº #{dossier.id}", path, target: '_blank')
|
|
|
|
- else
|
|
|
|
Dossier nº #{dossier.id}
|
|
|
|
%br
|
|
|
|
= sanitize(dossier.text_summary)
|
|
|
|
- else
|
|
|
|
Pas de dossier associé
|