demarches-normaliennes/app/components/procedure/notice_component/notice_component.html.haml
Paul Chavard 9fd96bc3ba Update app/components/procedure/notice_component/notice_component.html.haml
Co-authored-by: Colin Darie <colin@darie.eu>
2023-07-06 10:27:43 +02:00

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?)