Merge pull request #2795 from alexzvn/feat/display-rollback-interval

feat: display time interval for rollback images
This commit is contained in:
Andras Bacsai 2024-07-11 11:16:05 +02:00 committed by GitHub
commit b5247f77ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,12 @@
@endif
SHA: {{ data_get($image, 'tag') }}
</div>
<div class="text-xs">{{ data_get($image, 'created_at') }}</div>
@php
$date = data_get($image, 'created_at');
$interval = \Illuminate\Support\Carbon::parse($date);
@endphp
<div class="text-xs">{{ $interval->diffForHumans() }}</div>
<div class="text-xs">{{ $date }}</div>
</div>
<div class="flex justify-end p-2">
@if (data_get($image, 'is_current'))