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

9 lines
430 B
Text

.fr-downloads-group
- if profile == 'instructeur'
.gallery-items-list
- 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)