{{#if allocation.unhealthyDrivers.length}}
{{x-icon "warning" class="is-warning"}}
{{/if}}
{{#if allocation.nextAllocation}}
{{x-icon "history" class="is-faded"}}
{{/if}}
|
{{#link-to "allocations.allocation" allocation class="is-primary"}}
{{allocation.shortId}}
{{/link-to}}
|
{{#if (eq context "job")}}
{{#link-to "jobs.job.task-group" allocation.job allocation.taskGroupName (query-params jobNamespace=allocation.job.namespace.id)}}
{{allocation.taskGroupName}}
{{/link-to}}
|
{{/if}}
{{moment-format allocation.createTime "MM/DD HH:mm:ss"}} |
{{moment-from-now allocation.modifyTime}}
|
{{allocation.clientStatus}}
|
{{#if (or (eq context "taskGroup") (eq context "job"))}}
{{allocation.jobVersion}} |
{{#link-to "clients.client" allocation.node}}{{allocation.node.shortId}}{{/link-to}} |
{{else if (eq context "node")}}
{{#if (or allocation.job.isPending allocation.job.isReloading)}}
...
{{else}}
{{#link-to "jobs.job" allocation.job (query-params jobNamespace=allocation.job.namespace.id) data-test-job}}{{allocation.job.name}}{{/link-to}}
/ {{allocation.taskGroup.name}}
{{/if}}
|
{{allocation.jobVersion}} |
{{/if}}
{{#if allocation.isRunning}}
{{#if (and (not cpu) fetchStats.isRunning)}}
...
{{else if statsError}}
{{x-icon "warning" class="is-warning"}}
{{else}}
{{/if}}
{{/if}}
|
{{#if allocation.isRunning}}
{{#if (and (not memory) fetchStats.isRunning)}}
...
{{else if statsError}}
{{x-icon "warning" class="is-warning"}}
{{else}}
{{/if}}
{{/if}}
|