feat(token depreciation): add alert on profile
This commit is contained in:
parent
f4f55183de
commit
9ae4dbd4af
1 changed files with 5 additions and 0 deletions
|
@ -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;" }
|
||||
|
|
Loading…
Reference in a new issue