correctif(procedure/statistiques): utilise le nouveau composant pour afficher les delais de traitement

This commit is contained in:
Martin 2023-12-11 11:22:31 +01:00
parent b56d5199e2
commit 8650744064
3 changed files with 1 additions and 6 deletions

View file

@ -4,10 +4,7 @@
- if @usual_traitement_time.present?
.stat-card.big-number-card
%span.big-number-card-title= t('.usual_processing_time')
%span.big-number-card-number
= distance_of_time_in_words(@usual_traitement_time)
%span.big-number-card-detail
= t('.processing_time_description', percentile: ProcedureStatsConcern::USUAL_TRAITEMENT_TIME_PERCENTILE, span: ProcedureStatsConcern::NB_DAYS_RECENT_DOSSIERS, days: distance_of_time_in_words(@usual_traitement_time))
= render Procedure::EstimatedDelayComponent.new(procedure: @procedure)
.stat-cards
.stat-card.stat-card-half.pull-left

View file

@ -839,7 +839,6 @@ en:
stats:
usual_processing_time: "Usual processing time"
processing_time_description: "%{percentile}% of submitted files in the last %{span} days were processed in less than %{days}."
processing_time: "Processing time"
since_procedure_creation: "since the procedure was created"
nb_days: "Nb Days"

View file

@ -895,7 +895,6 @@ fr:
stats:
usual_processing_time: "Temps de traitement usuel"
processing_time_description: "%{percentile}% des demandes des %{span} derniers jours ont été traitées en moins de %{days}."
processing_time: "Temps de traitement"
since_procedure_creation: "depuis le lancement de la démarche"
nb_days: "Nb Jours"