demarches-normaliennes/app/components/dsfr/download_component/download_component.html.haml
2024-04-22 11:09:11 +02:00

14 lines
546 B
Text

.fr-download
%p
= link_to url, {class: "fr-download__link", title: title}.merge(new_tab ? { target: '_blank' } : { download: '' }) do
= truncate ? name.truncate(20) : name
%span.fr-download__detail
= helpers.download_details(attachment)
- if ephemeral_link
%span.fr-ml-2w.fr-text--xs.fr-text-mention--grey
%span.fr-icon-questionnaire-line{ "aria-hidden": "true" }
= t('.ephemeral_link')
- if virus_not_analyzed
.fr-text--xs.fr-text-mention--grey
= t('.virus_not_analyzed')