mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 21:18:11 -04:00
feat(ui): show the finish time of recent deployments on the dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d640aa15f5
commit
1652a1d091
@@ -96,9 +96,14 @@
|
||||
<x-status-badge :status="$deploymentStatus" :type="$deploymentStatusType" :spinning="$deployment->status === 'in_progress'" />
|
||||
<p class="min-w-0 truncate text-[11px] text-neutral-500 dark:text-fg-faint">
|
||||
{{ $environmentPath ?: '-' }}
|
||||
<span class="px-1 text-neutral-300 dark:text-white/15">·</span>
|
||||
{{ $deployment->server_name ?: '-' }}
|
||||
</p>
|
||||
@if ($deployment->created_at)
|
||||
<time datetime="{{ $deployment->created_at->toIso8601String() }}"
|
||||
title="{{ $deployment->created_at->toDayDateTimeString() }}"
|
||||
class="ml-auto shrink-0 whitespace-nowrap text-[11px] text-neutral-500 dark:text-fg-faint">
|
||||
{{ $deployment->created_at->diffForHumans() }}
|
||||
</time>
|
||||
@endif
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
@@ -114,7 +119,7 @@
|
||||
<span>Environment</span>
|
||||
<span>Server</span>
|
||||
<span>Status</span>
|
||||
<span>Started</span>
|
||||
<span>Finished</span>
|
||||
</div>
|
||||
|
||||
@foreach ($this->recentDeployments as $deployment)
|
||||
@@ -148,17 +153,23 @@
|
||||
<span class="hidden @2xl:block">
|
||||
<x-status-badge :status="$deploymentStatus" :type="$deploymentStatusType" :spinning="$deployment->status === 'in_progress'" />
|
||||
</span>
|
||||
<p class="hidden truncate text-[12px] text-neutral-500 @2xl:block dark:text-fg-dim">
|
||||
{{ $deployment->created_at?->diffForHumans() ?? '-' }}
|
||||
<p class="hidden truncate text-[12px] text-neutral-500 @2xl:block dark:text-fg-dim"
|
||||
title="{{ $deployment->finished_at?->toDayDateTimeString() }}">
|
||||
{{ $deployment->finished_at?->diffForHumans() ?? '-' }}
|
||||
</p>
|
||||
|
||||
<div class="mt-3 flex min-w-0 items-center gap-3 @2xl:hidden">
|
||||
<x-status-badge :status="$deploymentStatus" :type="$deploymentStatusType" :spinning="$deployment->status === 'in_progress'" />
|
||||
<p class="min-w-0 truncate text-[11px] text-neutral-500 dark:text-fg-faint">
|
||||
{{ $environmentPath ?: '-' }}
|
||||
<span class="px-1 text-neutral-300 dark:text-white/15">·</span>
|
||||
{{ $deployment->server_name ?: '-' }}
|
||||
</p>
|
||||
@if ($deployment->finished_at)
|
||||
<time datetime="{{ $deployment->finished_at->toIso8601String() }}"
|
||||
title="{{ $deployment->finished_at->toDayDateTimeString() }}"
|
||||
class="ml-auto shrink-0 whitespace-nowrap text-[11px] text-neutral-500 dark:text-fg-faint">
|
||||
{{ $deployment->finished_at->diffForHumans() }}
|
||||
</time>
|
||||
@endif
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user