nit show dates on version history

This commit is contained in:
Ruben Fiszel
2024-07-02 10:14:00 +02:00
parent 6c0f9e6df6
commit 068167e182
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -89,7 +89,7 @@
<div class="flex items-center gap-2">
<span class="text-sm text-tertiary">
{#if runnable}
Edited <TimeAgo withDate date={runnable.created_at || ''} /> by {runnable.created_by ||
Edited <TimeAgo withDate agoOnlyIfRecent date={runnable.created_at || ''} /> by {runnable.created_by ||
'unknown'}
{/if}
</span>
@@ -42,7 +42,7 @@
<div class="flex flex-col flex-1 h-full overflow-auto p-2">
{#if showDate && date}
<span class="text-xs text-tertiary mb-4"><TimeAgo {date} /></span>
<span class="text-xs text-tertiary mb-4"><TimeAgo agoOnlyIfRecent withDate {date} /></span>
{/if}
{#if notFound}
<div class="text-red-400">script not found at {path} in workspace {$workspaceStore}</div>
@@ -105,7 +105,7 @@
<div class="flex flex-row items-center gap-1 text-gray-500 dark:text-gray-300 text-2xs">
{#if job}
{#if 'started_at' in job && job.started_at}
Started <TimeAgo date={job.started_at ?? ''} />
Started <TimeAgo withDate agoOnlyIfRecent date={job.started_at ?? ''} />
{#if job && 'duration_ms' in job && job.duration_ms != undefined}
(Ran in {msToSec(
job.duration_ms
@@ -121,7 +121,11 @@
{:else if `scheduled_for` in job && job.scheduled_for && forLater(job.scheduled_for)}
Scheduled for {displayDate(job.scheduled_for)}
{:else}
Waiting for executor (created <TimeAgo date={job.created_at || ''} />)
Waiting for executor (created <TimeAgo
withDate
agoOnlyIfRecent
date={job.created_at || ''}
/>)
{/if}
{/if}
</div>