demarches-normaliennes/app/components/procedure/notice_component/notice_component.html.haml

5 lines
287 B
Text
Raw Normal View History

- 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
- elsif attachment?
= render Dsfr::DownloadComponent.new(attachment:, name: t(".name"), ephemeral_link: helpers.administrateur_signed_in?)