github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/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><LinkTo @route="clients.client" @model={{this.allocation.node}}>{{this.allocation.node.shortId}}</LinkTo></td>
    48    <td>
    49      {{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}}
    50        ...
    51      {{else}}
    52        <LinkTo @route="jobs.job" @model={{this.allocation.job}} @query={{hash jobNamespace=this.allocation.job.namespace.id}} data-test-job>{{this.allocation.job.name}}</LinkTo>
    53        <span class="is-faded" data-test-task-group>/ {{this.allocation.taskGroup.name}}</span>
    54      {{/if}}
    55    </td>
    56    <td data-test-job-version class="is-1">{{this.allocation.jobVersion}}</td>
    57    <td data-test-volume>{{if this.allocation.taskGroup.volumes.length "Yes"}}</td>
    58  
    59    <td data-test-cpu class="is-1 has-text-centered">
    60      <AllocationStat
    61        @metric="cpu"
    62        @allocation={{this.allocation}}
    63        @statsTracker={{this.stats}}
    64        @isLoading={{this.fetchStats.isRunning}}
    65        @error={{this.statsError}} />
    66    </td>
    67    <td data-test-mem class="is-1 has-text-centered">
    68      <AllocationStat
    69        @metric="memory"
    70        @allocation={{this.allocation}}
    71        @statsTracker={{this.stats}}
    72        @isLoading={{this.fetchStats.isRunning}}
    73        @error={{this.statsError}} />
    74    </td>
    75  {{else}}
    76    <td colspan="10">&hellip;</td>
    77  {{/if}}