diff --git a/frontend/src/lib/components/jobs/JobDetail.svelte b/frontend/src/lib/components/jobs/JobDetail.svelte index 77de2788e2..d5eb137999 100644 --- a/frontend/src/lib/components/jobs/JobDetail.svelte +++ b/frontend/src/lib/components/jobs/JobDetail.svelte @@ -66,63 +66,63 @@ goto('/schedules')} bind:this={scheduleEditor} /> - -
-
-
-
- {#if job === undefined} - No job found - {:else} -
- {#if 'success' in job && job.success} - {#if job.is_skipped} - - {:else} - - {/if} - {:else if 'success' in job} +
+
+
+
+ {#if job === undefined} + No job found + {:else} +
+ {#if 'success' in job && job.success} + {#if job.is_skipped} - {:else if 'running' in job && job.running} - - {:else if job && 'running' in job && job.scheduled_for && forLater(job.scheduled_for)} - {:else} {/if} -
+ {:else if 'success' in job} + + {:else if 'running' in job && job.running} + + {:else if job && 'running' in job && job.scheduled_for && forLater(job.scheduled_for)} + + {:else} + + {/if} +
-
+
+
{#if job.script_path} {job.script_path} @@ -142,111 +142,108 @@ }}>
-
- {#if 'job_kind' in job}{job.job_kind} - {/if} - {#if job.is_flow_step && (job.job_kind == 'script' || job.job_kind == 'preview')} - flow step - {/if} -
-
- {/if} -
-
{truncateRev(job.id, 8, '')}
-
-
-
-
- - By {job.created_by} -
- {#if job && 'duration_ms' in job && job.duration_ms != undefined} -
- - Ran in {msToSec(job.duration_ms)}s -
- {/if} -
-
- {#if 'started_at' in job && job.started_at} -
- - - {#if job?.['duration_ms']} - Ended {#key time} - {endedDate(job.started_at, job?.['duration_ms'])}{/key} - {:else} - Started {#key time} - {displayDaysAgo(job.started_at ?? '')}{/key} - {/if} -
- {/if} - {#if 'scheduled_for' in job && !job.running && job.scheduled_for && forLater(job.scheduled_for)} -
- - - Scheduled - for {displayDate(job.scheduled_for ?? '')} - -
- {:else if 'scheduled_for' in job && !job.running} -
- - Waiting for an executor - -
- {/if} -
- {#if job && job.parent_job} - {#if job.is_flow_step} - - Step of flow {truncateRev(job.parent_job, 6)} - {:else} - - Parent {job.parent_job} +
+ {#if 'job_kind' in job}{job.job_kind} {/if} - {:else if job && job.schedule_path} - - Schedule flow step + {/if} +
+
+ {/if} +
+
{truncateRev(job.id, 8, '')}
+
+
+
+
+ + By {job.created_by} +
+ {#if job && 'duration_ms' in job && job.duration_ms != undefined} +
+ + Ran in {msToSec(job.duration_ms)}s +
+ {/if} +
+
+ {#if 'started_at' in job && job.started_at} +
+ + + {#if job?.['duration_ms']} + Ended {#key time} + {endedDate(job.started_at, job?.['duration_ms'])}{/key} + {:else} + Started {#key time} + {displayDaysAgo(job.started_at ?? '')}{/key} + {/if} +
+ {/if} + {#if 'scheduled_for' in job && !job.running && job.scheduled_for && forLater(job.scheduled_for)} +
+ + + Scheduled + for {displayDate(job.scheduled_for ?? '')} + +
+ {:else if 'scheduled_for' in job && !job.running} +
+ + Waiting for an executor + +
+ {/if} +
+ {#if job && job.parent_job} + {#if job.is_flow_step} + + Step of flow {truncateRev(job.parent_job, 6)} + {:else} + + Parent {job.parent_job} {/if} -
+ {:else if job && job.schedule_path} + + Schedule + {/if}
- +
diff --git a/frontend/src/lib/components/jobs/JobPreview.svelte b/frontend/src/lib/components/jobs/JobPreview.svelte index f468d02594..492f5e9b8b 100644 --- a/frontend/src/lib/components/jobs/JobPreview.svelte +++ b/frontend/src/lib/components/jobs/JobPreview.svelte @@ -93,8 +93,8 @@ {#if open}