From 2d5201658479e1ee7546b6bb2d8562c7bffe618f Mon Sep 17 00:00:00 2001 From: Jai <41024828+ChaiWithJai@users.noreply.github.com> Date: Wed, 23 Nov 2022 11:36:47 -0500 Subject: [PATCH] refact: add namespace to nested detail pages (#15261) * refact: add namespace to job breadcrumb * refact: edit markup for correctness * styling: add child span style * chore: undo prev commits after design exploration * ui: add namespace to alloc details * ui: add namespace to task details * ui: add namespace to taskgroup --- ui/app/templates/allocations/allocation/index.hbs | 8 ++++++++ ui/app/templates/allocations/allocation/task/index.hbs | 8 ++++++++ ui/app/templates/jobs/job/task-group.hbs | 6 ++++++ 3 files changed, 22 insertions(+) diff --git a/ui/app/templates/allocations/allocation/index.hbs b/ui/app/templates/allocations/allocation/index.hbs index 16040f191..e9c9951e9 100644 --- a/ui/app/templates/allocations/allocation/index.hbs +++ b/ui/app/templates/allocations/allocation/index.hbs @@ -124,6 +124,14 @@ + + + Namespace + + + {{this.model.job.namespace.name}} + +
diff --git a/ui/app/templates/allocations/allocation/task/index.hbs b/ui/app/templates/allocations/allocation/task/index.hbs index c1c609b67..9c01d569a 100644 --- a/ui/app/templates/allocations/allocation/task/index.hbs +++ b/ui/app/templates/allocations/allocation/task/index.hbs @@ -97,6 +97,14 @@ {{this.model.task.lifecycleName}} + + + Namespace + + + {{this.model.allocation.job.namespace.name}} + + {{#if (and (can "list variables") this.model.task.pathLinkedVariable)}} diff --git a/ui/app/templates/jobs/job/task-group.hbs b/ui/app/templates/jobs/job/task-group.hbs index 57091b930..46c09f584 100644 --- a/ui/app/templates/jobs/job/task-group.hbs +++ b/ui/app/templates/jobs/job/task-group.hbs @@ -71,6 +71,12 @@ {{format-scheduled-bytes this.model.reservedEphemeralDisk start="MiB"}} + + + Namespace + + {{this.model.job.namespace.name}} + {{#if this.model.scaling}}