From 8526c19da243604679b2a2557163317196f7f16b Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 23 Aug 2022 16:28:24 +0200 Subject: [PATCH] fix runs page design --- frontend/src/routes/runs/[...path].svelte | 88 +++++++++---------- .../src/routes/scripts/get/[...hash].svelte | 6 +- 2 files changed, 45 insertions(+), 49 deletions(-) diff --git a/frontend/src/routes/runs/[...path].svelte b/frontend/src/routes/runs/[...path].svelte index 135ab4e77d..af615ddfb4 100644 --- a/frontend/src/routes/runs/[...path].svelte +++ b/frontend/src/routes/runs/[...path].svelte @@ -206,7 +206,7 @@ the bearer token they use has less privilege." {#if jobs} {#each jobs as job}
-
+
{#if job === undefined} @@ -292,50 +292,8 @@ the bearer token they use has less privilege." >
-
-
-
- - Created {displayDaysAgo(job.created_at ?? '')} -
- {#if 'started_at' in job && job.started_at} -
- - Started {displayDaysAgo(job.started_at ?? '')} -
- {/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} -
-
+
+
+
+
+ + Created {displayDaysAgo(job.created_at ?? '')} +
+ {#if 'started_at' in job && job.started_at} +
+ + Started {displayDaysAgo(job.started_at ?? '')} +
+ {/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} +
diff --git a/frontend/src/routes/scripts/get/[...hash].svelte b/frontend/src/routes/scripts/get/[...hash].svelte index a45e9775c5..8ddadb152f 100644 --- a/frontend/src/routes/scripts/get/[...hash].svelte +++ b/frontend/src/routes/scripts/get/[...hash].svelte @@ -311,10 +311,8 @@
By hash: {$page.url
-								.hostname}/api/w/{$workspaceStore}/jobs/run/h/{script?.hash}{$page.url.hostname}/api/w/{$workspaceStore}/jobs/run/h/{script?.hash}