From 9ae4dbd4af8bf1d3c5daa5d397bb41030a6ad238 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Thu, 16 Mar 2023 15:33:32 +0100 Subject: [PATCH] feat(token depreciation): add alert on profile --- .../api_token_component/api_token_component.html.haml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/components/profile/api_token_component/api_token_component.html.haml b/app/components/profile/api_token_component/api_token_component.html.haml index 2ffdfe33c..38dd310a1 100644 --- a/app/components/profile/api_token_component/api_token_component.html.haml +++ b/app/components/profile/api_token_component/api_token_component.html.haml @@ -2,6 +2,11 @@ %b= "#{@api_token.name} " %span.fr-text--sm= @api_token.prefix + -# TODO: remove after 01/07/2023 + - if @api_token.version != 3 && Time.zone.now < Time.zone.parse('01/07/2023') + .fr-alert.fr-alert--info.fr-alert--sm.mt-2 + %p Attention, ce jeton ne sera plus valide à partir du 01/07/2023 + .fr-card__desc - if @packed_token.present? .fr-text--sm{ style: "width: 80%; word-break: break-all;" }