Skip to content

Commit

Permalink
feat(gallery): gallery in demande page only for instructeurs
Browse files Browse the repository at this point in the history
  • Loading branch information
E-L-T committed Jun 12, 2024
1 parent c69244a commit d39167d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/shared/champs/piece_justificative/_show.html.haml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
.fr-downloads-group
- if !feature_enabled?(:gallery_demande)
%ul
- champ.piece_justificative_file.attachments.each do |attachment|
%li= render Attachment::ShowComponent.new(attachment:, new_tab: true)
- else
- if instructeur_signed_in? && feature_enabled?(:gallery_demande)
.gallery-items-list
- champ.piece_justificative_file.attachments.with_all_variant_records.each do |attachment|
.gallery-item
Expand All @@ -25,3 +21,7 @@
.thumbnail
= image_tag('apercu-indisponible.png')
= render Attachment::ShowComponent.new(attachment:, new_tab: true, truncate: true)
- else
%ul
- champ.piece_justificative_file.attachments.each do |attachment|
%li= render Attachment::ShowComponent.new(attachment:, new_tab: true)

0 comments on commit d39167d

Please sign in to comment.