From 2c45e7146b15e632306dbb234e1b8ea0c29fa802 Mon Sep 17 00:00:00 2001 From: Alexzvn Date: Thu, 11 Jul 2024 02:56:31 +0000 Subject: [PATCH] feat: display time interval for rollback images --- .../views/livewire/project/application/rollback.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/livewire/project/application/rollback.blade.php b/resources/views/livewire/project/application/rollback.blade.php index 6501155da..2807f2c18 100644 --- a/resources/views/livewire/project/application/rollback.blade.php +++ b/resources/views/livewire/project/application/rollback.blade.php @@ -18,7 +18,12 @@ @endif SHA: {{ data_get($image, 'tag') }} -
{{ data_get($image, 'created_at') }}
+ @php + $date = data_get($image, 'created_at'); + $interval = \Illuminate\Support\Carbon::parse($date); + @endphp +
{{ $interval->diffForHumans() }}
+
{{ $date }}
@if (data_get($image, 'is_current'))