github.com/emate/nomad@v0.8.2-wo-binpacking/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 class="is-one-line">
     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 (and (not stats) fetchStats.isRunning)}}
    27      ...
    28    {{else if (not allocation)}}
    29      {{! nothing when there's no allocation}}
    30    {{else if statsError}}
    31      <span class="tooltip text-center" aria-label="Couldn't collect stats">
    32        {{x-icon "warning" class="is-warning"}}
    33      </span>
    34    {{else}}
    35      <div class="inline-chart tooltip" aria-label="{{stats.cpuUsed}} / {{stats.reservedCPU}} MHz">
    36        <progress
    37          class="progress is-info is-small"
    38          value="{{stats.percentCPU}}"
    39          max="1">
    40          {{stats.percentCPU}}
    41        </progress>
    42      </div>
    43    {{/if}}
    44  </td>
    45  <td data-test-mem class="has-text-centered">
    46    {{#if (and (not stats) fetchStats.isRunning)}}
    47      ...
    48    {{else if (not allocation)}}
    49      {{! nothing when there's no allocation}}
    50    {{else if statsError}}
    51      <span class="tooltip text-center" aria-label="Couldn't collect stats">
    52        {{x-icon "warning" class="is-warning"}}
    53      </span>
    54    {{else}}
    55      <div class="inline-chart tooltip" aria-label="{{format-bytes stats.memoryUsed}} / {{stats.reservedMemory}} MiB">
    56        <progress
    57          class="progress is-danger is-small"
    58          value="{{stats.percentMemory}}"
    59          max="1">
    60          {{stats.percentMemory}}
    61        </progress>
    62      </div>
    63    {{/if}}
    64  </td>