diff --git a/web/frontend/src/Job.root.svelte b/web/frontend/src/Job.root.svelte index 29b577d..c713c33 100644 --- a/web/frontend/src/Job.root.svelte +++ b/web/frontend/src/Job.root.svelte @@ -14,6 +14,8 @@ import { getContext } from 'svelte' export let dbid + export let authlevel + export let roles const { query: initq } = init(` job(id: "${dbid}") { @@ -102,15 +104,22 @@ {/if} {#if $jobMetrics.data && $initq.data} - {#if $initq.data.job.concurrentJobs != null} - -
Concurrent Jobs
- - + {#if $initq.data.job.concurrentJobs != null} + {#if authlevel > roles.manager} + +
Concurrent Jobs
+ + + {:else} + +
{$initq.data.job.concurrentJobs.items.length} Concurrent Jobs
+

Number of shared jobs on the same node with overlapping runtimes.

+ + {/if} {/if} {{end}}