Merge pull request #8689 from tchak/fix-procedure-modifications

fix(procedure): fix translations in changes component
This commit is contained in:
Paul Chavard 2023-02-24 14:12:40 +00:00 committed by GitHub
commit cb0db65938
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,13 +46,13 @@
= t(".public.enable_mandatory", label: change.label) = t(".public.enable_mandatory", label: change.label)
- if !total_dossiers.zero? && !change.can_rebase? - if !total_dossiers.zero? && !change.can_rebase?
%strong %strong
= t(:breaking_change, count: total_dossiers) = t('.breaking_change', count: total_dossiers)
- else - else
- list.with_item do - list.with_item do
= t(".public.disable_mandatory", label: change.label) = t(".public.disable_mandatory", label: change.label)
- if !total_dossiers.zero? && !change.can_rebase? - if !total_dossiers.zero? && !change.can_rebase?
%strong %strong
= t(:breaking_change, count: total_dossiers) = t('.breaking_change', count: total_dossiers)
- when :piece_justificative_template - when :piece_justificative_template
- list.with_item do - list.with_item do
= t(".#{prefix}.update_piece_justificative_template", label: change.label) = t(".#{prefix}.update_piece_justificative_template", label: change.label)
@ -115,19 +115,19 @@
= t(".#{prefix}.add_condition", label: change.label, to: change.to) = t(".#{prefix}.add_condition", label: change.label, to: change.to)
- if !total_dossiers.zero? && !change.can_rebase? - if !total_dossiers.zero? && !change.can_rebase?
%strong %strong
= t(:breaking_change, count: total_dossiers) = t('.breaking_change', count: total_dossiers)
- elsif change.to.nil? - elsif change.to.nil?
- list.with_item do - list.with_item do
= t(".#{prefix}.remove_condition", label: change.label) = t(".#{prefix}.remove_condition", label: change.label)
- if !total_dossiers.zero? && !change.can_rebase? - if !total_dossiers.zero? && !change.can_rebase?
%strong %strong
= t(:breaking_change, count: total_dossiers) = t('.breaking_change', count: total_dossiers)
- else - else
- list.with_item do - list.with_item do
= t(".#{prefix}.update_condition", label: change.label, to: change.to) = t(".#{prefix}.update_condition", label: change.label, to: change.to)
- if !total_dossiers.zero? && !change.can_rebase? - if !total_dossiers.zero? && !change.can_rebase?
%strong %strong
= t(:breaking_change, count: total_dossiers) = t('.breaking_change', count: total_dossiers)
- if @public_move_changes.present? - if @public_move_changes.present?
- list.with_item do - list.with_item do