fix(gallery): add a feature flag on gallery demande
This commit is contained in:
parent
6ad6196098
commit
388470f186
3 changed files with 23 additions and 17 deletions
|
@ -1,4 +1,9 @@
|
|||
.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
|
||||
- champ.piece_justificative_file.attachments.each do |attachment|
|
||||
%ul
|
||||
%li= render Attachment::ShowComponent.new(attachment:, new_tab: true, truncate: true)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- content_for(:notice_info) do
|
||||
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.user.france_connect_informations.first }
|
||||
|
||||
.fr-container.counter-start-header-section.dossier-show.gallery.gallery-demande{ class: class_names("dossier-show-instructeur" => profile =="instructeur"), "data-controller": "lightbox" }
|
||||
.fr-container.counter-start-header-section.dossier-show{ class: class_names('gallery': feature_enabled?(:gallery_demande), 'gallery-demande': feature_enabled?(:gallery_demande), "dossier-show-instructeur" => profile =="instructeur"), "data-controller": "lightbox" }
|
||||
.fr-grid-row.fr-grid-row--center
|
||||
.fr-col-12.fr-col-xl-8
|
||||
- if profile == 'instructeur' && dossier.termine_and_accuse_lecture?
|
||||
|
|
|
@ -26,6 +26,7 @@ features = [
|
|||
:engagement_juridique_type_de_champ,
|
||||
:export_order_by_revision,
|
||||
:expression_reguliere_type_de_champ,
|
||||
:gallery_demande,
|
||||
:groupe_instructeur_api_hack,
|
||||
:hide_instructeur_email,
|
||||
:sva,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue