Skip to content

Commit

Permalink
Merge pull request #9834 from mfo/US/fix-instructeurs-stats-page
Browse files Browse the repository at this point in the history
correctif(procedure/statistiques): utilise le nouveau composant pour afficher les delais de traitement
  • Loading branch information
mfo authored Dec 11, 2023
2 parents b56d519 + 8650744 commit aaf0bf5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions app/views/shared/procedures/_stats.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit aaf0bf5

Please sign in to comment.