aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/line_referentials/show.html.slim4
-rw-r--r--app/views/stop_area_referentials/show.html.slim4
-rw-r--r--config/locales/line_referential_syncs.fr.yml4
-rw-r--r--config/locales/stop_area_referential_syncs.fr.yml4
4 files changed, 12 insertions, 4 deletions
diff --git a/app/views/line_referentials/show.html.slim b/app/views/line_referentials/show.html.slim
index ec1ff02d8..0ad88ecc8 100644
--- a/app/views/line_referentials/show.html.slim
+++ b/app/views/line_referentials/show.html.slim
@@ -31,6 +31,10 @@
- if log.criticity = log.criticity
li.alert class="alert-#{log.criticity}"
strong = l(log.created_at, format: :short) + " : "
+ / [:processing_time] unit conversion
+ - data = log.message_attributs.symbolize_keys!
+ - data[:processing_time] = distance_of_time_in_words(data[:processing_time].to_i)
+
= t("line_referential_sync.message.#{log.message_key}", log.message_attributs.symbolize_keys!)
- content_for :sidebar do
diff --git a/app/views/stop_area_referentials/show.html.slim b/app/views/stop_area_referentials/show.html.slim
index 625dcada9..e9fa17fa6 100644
--- a/app/views/stop_area_referentials/show.html.slim
+++ b/app/views/stop_area_referentials/show.html.slim
@@ -19,6 +19,10 @@
- if log.criticity = log.criticity
li.alert class="alert-#{log.criticity}"
strong = l(log.created_at, format: :short) + " : "
+ / [:processing_time] unit conversion
+ - data = log.message_attributs.symbolize_keys!
+ - data[:processing_time] = distance_of_time_in_words(data[:processing_time].to_i)
+
= t("stop_area_referential_sync.message.#{log.message_key}", log.message_attributs.symbolize_keys!)
- content_for :sidebar do
diff --git a/config/locales/line_referential_syncs.fr.yml b/config/locales/line_referential_syncs.fr.yml
index a6ed1940e..48b5df190 100644
--- a/config/locales/line_referential_syncs.fr.yml
+++ b/config/locales/line_referential_syncs.fr.yml
@@ -10,8 +10,8 @@ fr:
message:
new: "Synchronisation en attente"
pending: "Synchronisation en cours"
- successful: "Synchronisation réussie après %{processing_time} secondes avec %{imported} éléments importés. %{deleted} éléments ont été supprimés."
- failed: "Synchronisation interrompue après %{processing_time} secondes avec l'erreur : %{error}."
+ successful: "Synchronisation réussie après %{processing_time}, avec %{imported} éléments importés. %{deleted} éléments ont été supprimés."
+ failed: "Synchronisation interrompue après %{processing_time}, avec l'erreur : %{error}."
notice:
line_referential_sync:
created: 'Votre demande de synchronisation a bien été créée'
diff --git a/config/locales/stop_area_referential_syncs.fr.yml b/config/locales/stop_area_referential_syncs.fr.yml
index 5095aa195..d0b79a8db 100644
--- a/config/locales/stop_area_referential_syncs.fr.yml
+++ b/config/locales/stop_area_referential_syncs.fr.yml
@@ -10,8 +10,8 @@ fr:
message:
new: "Synchronisation en attente"
pending: "Synchronisation en cours"
- successful: "Synchronisation réussie après %{processing_time} secondes avec %{imported} éléments importés. %{deleted} éléments ont été supprimés."
- failed: "Synchronisation interrompue après %{processing_time} secondes avec l'erreur : %{error}."
+ successful: "Synchronisation réussie après %{processing_time}, avec %{imported} éléments importés. %{deleted} éléments ont été supprimés."
+ failed: "Synchronisation interrompue après %{processing_time}, avec l'erreur : %{error}."
notice:
stop_area_referential_sync:
created: 'Votre demande de synchronisation a bien été créée'