diff --git a/app/views/shared/procedures/_stats.html.haml b/app/views/shared/procedures/_stats.html.haml index b484f1871..1366bf263 100644 --- a/app/views/shared/procedures/_stats.html.haml +++ b/app/views/shared/procedures/_stats.html.haml @@ -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 diff --git a/config/locales/en.yml b/config/locales/en.yml index 187e4a945..65fafcd71 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index ae6d98049..1293f792e 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -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"