Change user logs format & Remove Updated On information

This commit is contained in:
Bubka 2024-02-13 11:41:34 +01:00
parent 5d01685ae1
commit a5b722c560
3 changed files with 6 additions and 8 deletions

View File

@ -90,9 +90,8 @@ class UserManagerResource extends UserResource
parent::toArray($request),
[
'twofaccounts_count' => is_null($this->twofaccounts_count) ? 0 : $this->twofaccounts_count,
'last_seen_at' => Carbon::parse($this->last_seen_at)->toDateString(),
'created_at' => Carbon::parse($this->created_at)->toDateString(),
'updated_at' => Carbon::parse($this->updated_at)->toDateString(),
'last_seen_at' => Carbon::parse($this->last_seen_at)->locale(App::getLocale())->diffForHumans(),
'created_at' => Carbon::parse($this->created_at)->locale(App::getLocale())->diffForHumans(),
]
);
}

View File

@ -281,9 +281,8 @@
<h2 class="title is-4 has-text-grey-light">{{ $t('admin.logs') }}</h2>
<div class="block">
<ul class="is-size-6 is-size-7-mobile">
<li>{{ $t('admin.last_seen_on_date', { date: managedUser.info.last_seen_at }) }}</li>
<li>{{ $t('admin.registered_on_date', { date: managedUser.info.created_at }) }}</li>
<li>{{ $t('admin.updated_on_date', { date: managedUser.info.updated_at }) }}</li>
<li>{{ $t('admin.last_seen_on_date', { date: managedUser.info.last_seen_at }) }}</li>
</ul>
</div>
<!-- danger zone -->

View File

@ -39,9 +39,9 @@ return [
'user_management' => 'User management',
'oauth_provider' => 'OAuth provider',
'account_bound_to_x_via_oauth' => 'This account is bound to a :provider account via OAuth',
'last_seen_on_date' => 'Last seen at :date',
'registered_on_date' => 'Registered on :date',
'updated_on_date' => 'Updated on :date',
'last_seen_on_date' => 'Last seen :date',
'registered_on_date' => 'Registered :date',
'updated_on_date' => 'Updated :date',
'access' => 'Access',
'password_requested_on_t' => 'A password reset request exists for this user (request sent at :datetime) meaning the user didn\'t change its password yet but the link he received is still valid. This could be a request from the user himself or from an administrator.',
'password_request_expired' => 'A password reset request exists for this user but has expired, meaning the user didn\'t change its password in time. This could be a request from the user himself or from an administrator.',