open-nomad/ui/app/templates/components/job-row.hbs
Buck Doyle 244157786a
Add explicit this to templates (#8388)
This is the result of running the no-implicit-this-codemod, some manual fixes,
and the addition of a linting rule to prevent future ambiguity.
2020-07-09 15:19:07 -05:00

27 lines
872 B
Handlebars

<td data-test-job-name><LinkTo @route="jobs.job" @model={{this.job.plainId}} class="is-primary">{{this.job.name}}</LinkTo></td>
<td data-test-job-status>
<span class="tag {{this.job.statusClass}}">{{this.job.status}}</span>
</td>
<td data-test-job-type>{{this.job.displayType}}</td>
<td data-test-job-priority>{{this.job.priority}}</td>
<td data-test-job-task-groups>
{{#if this.job.taskGroupCount}}
{{this.job.taskGroupCount}}
{{else}}
--
{{/if}}
</td>
<td data-test-job-allocations>
<div class="inline-chart">
{{#if this.job.hasChildren}}
{{#if (gt this.job.totalChildren 0)}}
<ChildrenStatusBar @job={{this.job}} @isNarrow={{true}} />
{{else}}
<em class="is-faded">No Children</em>
{{/if}}
{{else}}
<AllocationStatusBar @allocationContainer={{this.job}} @isNarrow={{true}} />
{{/if}}
</div>
</td>