{{#link-to "allocations.allocation" allocation class="is-primary"}} {{allocation.shortId}} {{/link-to}} {{moment-format allocation.modifyTime "MM/DD HH:mm:ss"}} {{allocation.name}} {{allocation.clientStatus}} {{#if (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 (and (not stats) fetchStats.isRunning)}} ... {{else if (not allocation)}} {{! nothing when there's no allocation}} {{else if statsError}} {{x-icon "warning" class="is-warning"}} {{else}}
{{stats.percentCPU}}
{{/if}} {{#if (and (not stats) fetchStats.isRunning)}} ... {{else if (not allocation)}} {{! nothing when there's no allocation}} {{else if statsError}} {{x-icon "warning" class="is-warning"}} {{else}}
{{stats.percentMemory}}
{{/if}}