diff --git a/ui/app/styles/core/table.scss b/ui/app/styles/core/table.scss index 63822653b..0cd6a925d 100644 --- a/ui/app/styles/core/table.scss +++ b/ui/app/styles/core/table.scss @@ -14,6 +14,10 @@ } } + &.is-isolated { + margin-bottom: 0; + } + &.with-foot { margin-bottom: 0; border-bottom-left-radius: 0; diff --git a/ui/app/templates/components/job-editor.hbs b/ui/app/templates/components/job-editor.hbs index 8f85ebc58..52969285c 100644 --- a/ui/app/templates/components/job-editor.hbs +++ b/ui/app/templates/components/job-editor.hbs @@ -88,6 +88,34 @@ {{/if}} + {{#if (and planOutput.preemptions.isFulfilled planOutput.preemptions.length)}} +
+
+ Preemptions (if you choose to run this job, these allocations will be stopped) +
+
+ {{#list-table + source=planOutput.preemptions + class="allocations is-isolated" as |t|}} + {{#t.head}} + + ID + Task Group + Created + Modified + Status + Version + Node + CPU + Memory + {{/t.head}} + {{#t.body as |row|}} + {{allocation-row allocation=row.model context="job"}} + {{/t.body}} + {{/list-table}} +
+
+ {{/if}}