Merge pull request #2869 from betagouv/hide-mean-time

Hide the mean verification/instruction times for a special demarche
This commit is contained in:
gregoirenovel 2018-10-18 13:47:08 +02:00 committed by GitHub
commit 2982cbca47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,7 @@
- procedure_id_for_which_we_hide_the_time_means = 6547
- procedure_path_for_which_we_hide_the_time_means = 'deposer-une-offre-de-stage'
- show_time_means = dossier.procedure.id != procedure_id_for_which_we_hide_the_time_means && dossier.procedure.path != procedure_path_for_which_we_hide_the_time_means
.status-overview
- if !dossier.termine?
%ul.status-timeline
@ -26,7 +30,8 @@
= succeed '.' do
%strong votre dossier passera directement en instruction
- if dossier.procedure.mean_verification_time
/ FIXME: remove the custom procedure switch at some point
- if dossier.procedure.mean_verification_time && show_time_means
- cache(dossier.procedure, expires_in: 1.week) do
%p
Le temps moyen de vérification pour cette démarche est de #{distance_of_time_in_words(dossier.procedure.mean_verification_time)}.
@ -39,7 +44,9 @@
%strong
vous recevrez un email
avec le résultat.
- if dossier.procedure.mean_instruction_time
/ FIXME: remove the custom procedure switch at some point
- if dossier.procedure.mean_instruction_time && show_time_means
- cache(dossier.procedure, expires_in: 1.week) do
%p
Le temps moyen dinstruction pour cette démarche est de #{distance_of_time_in_words(dossier.procedure.mean_instruction_time)}.