From 2475bb10982d687e692618ee06879a229e0df3ac Mon Sep 17 00:00:00 2001 From: Eric Leroy-Terquem Date: Mon, 23 Jan 2023 22:10:54 +0100 Subject: [PATCH] feat(avis): add remind text in view --- app/views/instructeurs/shared/avis/_list.html.haml | 3 +++ config/locales/views/shared/en.yml | 1 + config/locales/views/shared/fr.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/app/views/instructeurs/shared/avis/_list.html.haml b/app/views/instructeurs/shared/avis/_list.html.haml index bf5edc858..d6ab7f27a 100644 --- a/app/views/instructeurs/shared/avis/_list.html.haml +++ b/app/views/instructeurs/shared/avis/_list.html.haml @@ -40,6 +40,9 @@ - if avis.revokable_by?(current_instructeur) | = link_to(t('revoke', scope: 'helpers.label'), revoquer_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revoke', scope: 'helpers.confirmation', email: avis.expert.email) }, method: :patch) + - if avis.reminded_at + %span.date.fr-text--xs.fr-text-mention--grey{ class: highlight_if_unseen_class(avis_seen_at, avis.reminded_at) } + = t('relance_effectuee_le', scope: 'views.shared.avis', date: l(avis.reminded_at, format: '%d/%m/%y à %H:%M')) - if avis.introduction_file.attached? = render Attachment::ShowComponent.new(attachment: avis.introduction_file.attachment) .answer-body.mb-3 diff --git a/config/locales/views/shared/en.yml b/config/locales/views/shared/en.yml index 2d6d9c9a6..a746557f0 100644 --- a/config/locales/views/shared/en.yml +++ b/config/locales/views/shared/en.yml @@ -7,6 +7,7 @@ en: avis: demande_envoyee_le: "Feedback send at %{date}" demande_revoquee_le: "Feedback revoked at %{date}" + relance_effectuee_le: "Revival sent at %{date}" reponse_donnee_le: "Response sent at %{date}" en_attente: "Waiting for response" france_connect_login: diff --git a/config/locales/views/shared/fr.yml b/config/locales/views/shared/fr.yml index 3498b8737..f880fcab5 100644 --- a/config/locales/views/shared/fr.yml +++ b/config/locales/views/shared/fr.yml @@ -7,6 +7,7 @@ fr: avis: demande_envoyee_le: "Demande d’avis envoyée le %{date}" demande_revoquee_le: "Demande d’avis révoquée le %{date}" + relance_effectuee_le: "Relance effectuée le %{date}" reponse_donnee_le: "Réponse donnée le %{date}" en_attente: "En attente de réponse" france_connect_login: