feat: display time interval for rollback images
This commit is contained in:
parent
82057e1f50
commit
2c45e7146b
@ -18,7 +18,12 @@
|
|||||||
@endif
|
@endif
|
||||||
SHA: {{ data_get($image, 'tag') }}
|
SHA: {{ data_get($image, 'tag') }}
|
||||||
</div>
|
</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>
|
||||||
<div class="flex justify-end p-2">
|
<div class="flex justify-end p-2">
|
||||||
@if (data_get($image, 'is_current'))
|
@if (data_get($image, 'is_current'))
|
||||||
|
Loading…
Reference in New Issue
Block a user