demarches-normaliennes/app/views/shared/champs/piece_justificative/_show.html.haml

10 lines
430 B
Text
Raw Normal View History

.fr-downloads-group
- if profile == 'instructeur'
.gallery-items-list
2024-05-07 16:41:20 +02:00
- champ.piece_justificative_file.attachments.with_all_variant_records.each do |attachment|
= render Attachment::GalleryItemComponent.new(attachment:, gallery_demande: true)
- else
%ul
- champ.piece_justificative_file.attachments.each do |attachment|
%li= render Attachment::ShowComponent.new(attachment:, new_tab: true)