github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/app/templates/components/allocation-row.hbs (about) 1 <td data-test-short-id> 2 {{#link-to "allocations.allocation" allocation class="is-primary"}} 3 {{allocation.shortId}} 4 {{/link-to}} 5 </td> 6 <td data-test-modify-time>{{moment-format allocation.modifyTime "MM/DD HH:mm:ss"}}</td> 7 <td data-test-name>{{allocation.name}}</td> 8 <td data-test-client-status> 9 <span class="color-swatch {{allocation.clientStatus}}" /> {{allocation.clientStatus}} 10 </td> 11 {{#if (eq context "job")}} 12 <td data-test-job-version>{{allocation.jobVersion}}</td> 13 <td data-test-client>{{#link-to "clients.client" allocation.node}}{{allocation.node.shortId}}{{/link-to}}</td> 14 {{else if (eq context "node")}} 15 <td> 16 {{#if (or allocation.job.isPending allocation.job.isReloading)}} 17 ... 18 {{else}} 19 {{#link-to "jobs.job" allocation.job (query-params jobNamespace=allocation.job.namespace.id) data-test-job}}{{allocation.job.name}}{{/link-to}} 20 <span class="is-faded" data-test-task-group>/ {{allocation.taskGroup.name}}</span> 21 {{/if}} 22 </td> 23 <td data-test-job-version>{{allocation.jobVersion}}</td> 24 {{/if}} 25 <td data-test-cpu class="has-text-centered"> 26 {{#if allocation.stats.isPending}} 27 ... 28 {{else if allocation.stats.isRejected}} 29 <span class="tooltip text-center" aria-label="Couldn't connect to client"> 30 {{x-icon "warning" class="is-warning"}} 31 </span> 32 {{else}} 33 <div class="inline-chart tooltip" aria-label="{{allocation.cpuUsed}} / {{allocation.taskGroup.reservedCPU}} MHz"> 34 <progress 35 class="progress is-info is-small" 36 value="{{allocation.percentCPU}}" 37 max="1"> 38 {{allocation.percentCPU}} 39 </progress> 40 </div> 41 {{/if}} 42 </td> 43 <td data-test-mem class="has-text-centered"> 44 {{#if allocation.stats.isPending}} 45 ... 46 {{else if allocation.stats.isRejected}} 47 <span class="tooltip text-center" aria-label="Couldn't connect to client"> 48 {{x-icon "warning" class="is-warning"}} 49 </span> 50 {{else}} 51 <div class="inline-chart tooltip" aria-label="{{format-bytes allocation.memoryUsed}} / {{allocation.taskGroup.reservedMemory}} MiB"> 52 <progress 53 class="progress is-danger is-small" 54 value="{{allocation.percentMemory}}" 55 max="1"> 56 {{allocation.percentMemory}} 57 </progress> 58 </div> 59 {{/if}} 60 </td>