github.com/hernad/nomad@v1.6.112/ui/app/templates/components/job-row.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 <td data-test-job-name 7 {{keyboard-shortcut 8 enumerated=true 9 action=(action "gotoJob" @job) 10 }} 11 > 12 <LinkTo 13 @route="jobs.job.index" 14 @model={{this.job.idWithNamespace}} 15 class="is-primary" 16 > 17 {{this.job.name}} 18 19 {{#if this.job.meta.structured.pack}} 20 <span data-test-pack-tag class="tag is-pack"> 21 {{x-icon "box" class= "test"}} 22 <span>Pack</span> 23 </span> 24 {{/if}} 25 26 </LinkTo> 27 </td> 28 {{#if (not (eq @context "child"))}} 29 {{#if this.system.shouldShowNamespaces}} 30 <td data-test-job-namespace> 31 {{this.job.namespace.name}} 32 </td> 33 {{/if}} 34 {{/if}} 35 {{#if (eq @context "child")}} 36 <td data-test-job-submit-time> 37 {{format-month-ts this.job.submitTime}} 38 </td> 39 {{/if}} 40 <td data-test-job-status> 41 <span class="tag {{this.job.statusClass}}"> 42 {{this.job.status}} 43 </span> 44 </td> 45 {{#if (not (eq @context "child"))}} 46 <td data-test-job-type> 47 {{this.job.displayType.type}} 48 </td> 49 <td data-test-job-node-pool> 50 {{#if this.job.nodePool}}{{this.job.nodePool}}{{else}}-{{/if}} 51 </td> 52 <td data-test-job-priority> 53 {{this.job.priority}} 54 </td> 55 {{/if}} 56 <td data-test-job-task-groups> 57 {{#if this.job.taskGroupCount}} 58 {{this.job.taskGroupCount}} 59 {{else}} 60 -- 61 {{/if}} 62 </td> 63 <td data-test-job-allocations> 64 <div class="inline-chart"> 65 {{#if this.job.hasChildren}} 66 {{#if (gt this.job.totalChildren 0)}} 67 <ChildrenStatusBar @job={{this.job}} @isNarrow={{true}} /> 68 {{else}} 69 <em class="is-faded"> 70 No Children 71 </em> 72 {{/if}} 73 {{else}} 74 <AllocationStatusBar 75 @allocationContainer={{this.job}} 76 @isNarrow={{true}} 77 /> 78 {{/if}} 79 </div> 80 </td>