2023-06-16 17:21:10 +02:00
|
|
|
- if link?
|
2023-07-11 10:48:01 +02:00
|
|
|
= link_to url, t(".name"), class: "fr-download__link", title: helpers.new_tab_suffix(t(".name")), **helpers.external_link_attributes
|
2023-06-16 17:21:10 +02:00
|
|
|
- elsif attachment?
|
2023-07-06 13:23:32 +02:00
|
|
|
= render Dsfr::DownloadComponent.new(attachment:, name: t(".name"), ephemeral_link: helpers.administrateur_signed_in?)
|