From 541d54aa7c438fe1dbcf4047258c5f201dbdb3ad Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Thu, 1 Jun 2023 15:13:12 +0200 Subject: [PATCH] Users/Managers only display number of shared jobs --- web/frontend/src/Job.root.svelte | 27 ++++++++++++++++++--------- web/frontend/src/job.entrypoint.js | 4 +++- web/templates/monitoring/job.tmpl | 2 ++ 3 files changed, 23 insertions(+), 10 deletions(-) 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}}