open-nomad/ui/app/templates/components/job-row.hbs

27 lines
812 B
Handlebars
Raw Normal View History

<td data-test-job-name><LinkTo @route="jobs.job" @model={{job.plainId}} class="is-primary">{{job.name}}</LinkTo></td>
<td data-test-job-status>
2017-09-19 14:47:10 +00:00
<span class="tag {{job.statusClass}}">{{job.status}}</span>
</td>
<td data-test-job-type>{{job.displayType}}</td>
<td data-test-job-priority>{{job.priority}}</td>
<td data-test-job-task-groups>
{{#if job.taskGroupCount}}
{{job.taskGroupCount}}
2018-02-12 23:27:19 +00:00
{{else}}
--
{{/if}}
</td>
<td data-test-job-allocations>
<div class="inline-chart">
{{#if job.hasChildren}}
{{#if (gt job.totalChildren 0)}}
<ChildrenStatusBar @job={{job}} @isNarrow={{true}} />
{{else}}
<em class="is-faded">No Children</em>
{{/if}}
{{else}}
<AllocationStatusBar @allocationContainer={{job}} @isNarrow={{true}} />
{{/if}}
</div>
2017-09-19 14:47:10 +00:00
</td>