demarches-normaliennes/app/components/attachment/show_component/show_component.html.haml

12 lines
512 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%div{ id: dom_id(attachment, :show), class: class_names("attachment-error": error?, "fr-mb-2w": !should_display_link?) }
- if should_display_link?
= render Dsfr::DownloadComponent.new(attachment: attachment) do |c|
- if !attachment.virus_scanner.started?
- c.right do
(ce fichier na pas été analysé par notre antivirus, téléchargez-le avec précaution)
- else
.attachment-filename.fr-mb-1w= attachment.filename.to_s
- if error?
%p.fr-error-text= error_message