43c6f03d10
wip
11 lines
383 B
Text
11 lines
383 B
Text
- dossier = Dossier.includes(:procedure).find_by(id: champ.to_s)
|
|
- if dossier
|
|
- path = dossier_linked_path(current_instructeur || current_user, dossier)
|
|
- if path.present?
|
|
%p= link_to("Dossier nº #{dossier.id}", path, target: '_blank', rel: 'noopener')
|
|
- else
|
|
%p Dossier nº #{dossier.id}
|
|
%br
|
|
%p= sanitize(dossier.text_summary)
|
|
- else
|
|
%p Pas de dossier associé
|