9fd96bc3ba
Co-authored-by: Colin Darie <colin@darie.eu>
4 lines
263 B
Text
4 lines
263 B
Text
- if link?
|
|
= link_to url, t(".name"), class: "fr-download__link", title: new_tab_suffix(t(".name")), **external_link_attributes
|
|
- elsif attachment?
|
|
= render Dsfr::DownloadComponent.new(attachment:, name: t(".name"), ephemeral_link: administrateur_signed_in?)
|