diff --git a/app/components/procedure/notice_component/notice_component.html.haml b/app/components/procedure/notice_component/notice_component.html.haml index fae679267..c93947e4b 100644 --- a/app/components/procedure/notice_component/notice_component.html.haml +++ b/app/components/procedure/notice_component/notice_component.html.haml @@ -1,4 +1,4 @@ - if link? - = link_to url, t(".name"), class: "fr-download__link", title: new_tab_suffix(t(".name")), **external_link_attributes + = 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?)