github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/templates/components/allocation-row.hbs (about) 1 <td data-test-indicators class="is-narrow"> 2 {{#if this.allocation.unhealthyDrivers.length}} 3 <span data-test-icon="unhealthy-driver" class="tooltip text-center" role="tooltip" aria-label="Allocation depends on unhealthy drivers"> 4 {{x-icon "alert-triangle" class="is-warning"}} 5 </span> 6 {{/if}} 7 {{#if this.allocation.nextAllocation}} 8 <span data-test-icon="reschedule" class="tooltip text-center" role="tooltip" aria-label="Allocation was rescheduled"> 9 {{x-icon "history" class="is-faded"}} 10 </span> 11 {{/if}} 12 {{#if this.allocation.wasPreempted}} 13 <span data-test-icon="preemption" class="tooltip text-center" role="tooltip" aria-label="Allocation was preempted"> 14 {{x-icon "boot" class="is-faded"}} 15 </span> 16 {{/if}} 17 </td> 18 <td data-test-short-id> 19 <LinkTo @route="allocations.allocation" @model={{this.allocation}} class="is-primary"> 20 {{this.allocation.shortId}} 21 </LinkTo> 22 </td> 23 {{#if (eq this.context "job")}} 24 <td data-test-task-group> 25 <LinkTo @route="jobs.job.task-group" @models={{array this.allocation.job this.allocation.taskGroupName}} @query={{hash jobNamespace=this.allocation.job.namespace.id}}> 26 {{this.allocation.taskGroupName}} 27 </LinkTo> 28 </td> 29 {{/if}} 30 <td data-test-create-time>{{format-month-ts this.allocation.createTime}}</td> 31 <td data-test-modify-time> 32 <span class="tooltip" aria-label="{{format-month-ts this.allocation.modifyTime}}"> 33 {{moment-from-now this.allocation.modifyTime}} 34 </span> 35 </td> 36 <td data-test-client-status class="is-one-line"> 37 <span class="color-swatch {{this.allocation.clientStatus}}" /> {{this.allocation.clientStatus}} 38 </td> 39 {{#if (eq this.context "volume")}} 40 <td data-test-client><LinkTo @route="clients.client" @model={{this.allocation.node}}>{{this.allocation.node.shortId}}</LinkTo></td> 41 {{/if}} 42 {{#if (or (eq this.context "taskGroup") (eq this.context "job"))}} 43 <td data-test-job-version>{{this.allocation.jobVersion}}</td> 44 <td data-test-client><LinkTo @route="clients.client" @model={{this.allocation.node}}>{{this.allocation.node.shortId}}</LinkTo></td> 45 {{else if (or (eq this.context "node") (eq this.context "volume"))}} 46 <td> 47 {{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}} 48 ... 49 {{else}} 50 <LinkTo @route="jobs.job" @model={{this.allocation.job}} @query={{hash jobNamespace=this.allocation.job.namespace.id}} data-test-job>{{this.allocation.job.name}}</LinkTo> 51 <span class="is-faded" data-test-task-group>/ {{this.allocation.taskGroup.name}}</span> 52 {{/if}} 53 </td> 54 <td data-test-job-version class="is-1">{{this.allocation.jobVersion}}</td> 55 {{/if}} 56 {{#if (not (eq this.context "volume"))}} 57 <td data-test-volume>{{if this.allocation.taskGroup.volumes.length "Yes"}}</td> 58 {{/if}} 59 <td data-test-cpu class="is-1 has-text-centered"> 60 <AllocationStat 61 @metric="cpu" 62 @allocation={{this.allocation}} 63 @statsTracker={{this.stats}} 64 @isLoading={{this.fetchStats.isRunning}} 65 @error={{this.statsError}} /> 66 </td> 67 <td data-test-mem class="is-1 has-text-centered"> 68 <AllocationStat 69 @metric="memory" 70 @allocation={{this.allocation}} 71 @statsTracker={{this.stats}} 72 @isLoading={{this.fetchStats.isRunning}} 73 @error={{this.statsError}} /> 74 </td>