github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/templates/components/plugin-allocation-row.hbs (about) 1 {{#if this.allocation}} 2 <td data-test-indicators class="is-narrow"> 3 {{#if this.allocation.unhealthyDrivers.length}} 4 <span data-test-icon="unhealthy-driver" class="tooltip text-center" role="tooltip" aria-label="Allocation depends on unhealthy drivers"> 5 {{x-icon "alert-triangle" class="is-warning"}} 6 </span> 7 {{/if}} 8 {{#if this.allocation.nextAllocation}} 9 <span data-test-icon="reschedule" class="tooltip text-center" role="tooltip" aria-label="Allocation was rescheduled"> 10 {{x-icon "history" class="is-faded"}} 11 </span> 12 {{/if}} 13 {{#if this.allocation.wasPreempted}} 14 <span data-test-icon="preemption" class="tooltip text-center" role="tooltip" aria-label="Allocation was preempted"> 15 {{x-icon "boot" class="is-faded"}} 16 </span> 17 {{/if}} 18 </td> 19 20 <td data-test-short-id> 21 <LinkTo @route="allocations.allocation" @model={{this.allocation}} class="is-primary"> 22 {{this.allocation.shortId}} 23 </LinkTo> 24 </td> 25 26 <td data-test-create-time> 27 <span class="tooltip" aria-label="{{format-month-ts this.allocation.createTime}}"> 28 {{format-month-ts this.allocation.createTime short=true}} 29 </span> 30 </td> 31 32 <td data-test-modify-time> 33 <span class="tooltip" aria-label="{{format-month-ts this.allocation.modifyTime}}"> 34 {{moment-from-now this.allocation.modifyTime}} 35 </span> 36 </td> 37 38 <td data-test-health> 39 <span class="nowrap"> 40 {{x-icon 41 (if this.pluginAllocation.healthy "check-circle-outline" "minus-circle-outline") 42 class=(if this.pluginAllocation.healthy "is-success" "is-danger")}} 43 {{if this.pluginAllocation.healthy "Healthy" "Unhealthy"}} 44 </span> 45 </td> 46 47 <td data-test-client> 48 <Tooltip @text={{this.allocation.node.name}}> 49 <LinkTo @route="clients.client" @model={{this.allocation.node}}> 50 {{this.allocation.node.shortId}} 51 </LinkTo> 52 </Tooltip> 53 </td> 54 <td> 55 {{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}} 56 ... 57 {{else}} 58 <LinkTo @route="jobs.job" @model={{this.allocation.job}} data-test-job>{{this.allocation.job.name}}</LinkTo> 59 <span class="is-faded" data-test-task-group>/ {{this.allocation.taskGroup.name}}</span> 60 {{/if}} 61 </td> 62 <td data-test-job-version class="is-1">{{this.allocation.jobVersion}}</td> 63 <td data-test-volume>{{if this.allocation.taskGroup.volumes.length "Yes"}}</td> 64 65 <td data-test-cpu class="is-1 has-text-centered"> 66 <AllocationStat 67 @metric="cpu" 68 @allocation={{this.allocation}} 69 @statsTracker={{this.stats}} 70 @isLoading={{this.fetchStats.isRunning}} 71 @error={{this.statsError}} /> 72 </td> 73 <td data-test-mem class="is-1 has-text-centered"> 74 <AllocationStat 75 @metric="memory" 76 @allocation={{this.allocation}} 77 @statsTracker={{this.stats}} 78 @isLoading={{this.fetchStats.isRunning}} 79 @error={{this.statsError}} /> 80 </td> 81 {{else}} 82 <td colspan="10">…</td> 83 {{/if}}