github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/templates/components/job-row.hbs (about)

     1  <td data-test-job-name
     2    {{keyboard-shortcut 
     3      enumerated=true
     4      action=(action "gotoJob" @job)
     5    }}
     6  >
     7    <LinkTo
     8      @route="jobs.job.index"
     9      @model={{this.job.idWithNamespace}}
    10      class="is-primary"
    11    >
    12      {{this.job.name}}
    13  
    14      {{#if this.job.meta.structured.pack}}
    15        <span data-test-pack-tag class="tag is-pack">
    16          {{x-icon "box" class= "test"}}
    17          <span>Pack</span>
    18        </span>
    19      {{/if}}
    20  
    21    </LinkTo>
    22  </td>
    23  {{#if this.system.shouldShowNamespaces}}
    24    <td data-test-job-namespace>
    25      {{this.job.namespace.name}}
    26    </td>
    27  {{/if}}
    28  {{#if (eq @context "child")}}
    29    <td data-test-job-submit-time>
    30      {{format-month-ts this.job.submitTime}}
    31    </td>
    32  {{/if}}
    33  <td data-test-job-status>
    34    <span class="tag {{this.job.statusClass}}">
    35      {{this.job.status}}
    36    </span>
    37  </td>
    38  <td data-test-job-type>
    39    {{this.job.displayType}}
    40  </td>
    41  <td data-test-job-priority>
    42    {{this.job.priority}}
    43  </td>
    44  <td data-test-job-task-groups>
    45    {{#if this.job.taskGroupCount}}
    46      {{this.job.taskGroupCount}}
    47    {{else}}
    48      --
    49    {{/if}}
    50  </td>
    51  <td data-test-job-allocations>
    52    <div class="inline-chart">
    53      {{#if this.job.hasChildren}}
    54        {{#if (gt this.job.totalChildren 0)}}
    55          <ChildrenStatusBar @job={{this.job}} @isNarrow={{true}} />
    56        {{else}}
    57          <em class="is-faded">
    58            No Children
    59          </em>
    60        {{/if}}
    61      {{else}}
    62        <AllocationStatusBar
    63          @allocationContainer={{this.job}}
    64          @isNarrow={{true}}
    65        />
    66      {{/if}}
    67    </div>
    68  </td>