a8ce11a4d2
http://support.detectify.com/customer/portal/articles/2792257-external-links-using-target-_blank-
11 lines
374 B
Text
11 lines
374 B
Text
- dossier = Dossier.includes(:procedure).find_by(id: champ.to_s)
|
|
- if dossier
|
|
- path = dossier_linked_path(current_gestionnaire || current_user, dossier)
|
|
- if path.present?
|
|
= link_to("Dossier nº #{dossier.id}", path, target: '_blank', rel: 'noopener')
|
|
- else
|
|
Dossier nº #{dossier.id}
|
|
%br
|
|
= sanitize(dossier.text_summary)
|
|
- else
|
|
Pas de dossier associé
|