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

56 lines
1.2 KiB
Handlebars
Raw Normal View History

2022-01-03 16:37:57 +00:00
<td data-test-job-name>
<LinkTo
@route="jobs.job"
2022-01-14 15:11:22 +00:00
@model={{this.job}}
2022-01-03 16:37:57 +00:00
@query={{hash namespace=this.job.namespace.id}}
class="is-primary"
>
{{this.job.name}}
</LinkTo>
</td>
{{#if this.system.shouldShowNamespaces}}
2022-01-03 16:37:57 +00:00
<td data-test-job-namespace>
{{this.job.namespace.name}}
</td>
{{/if}}
{{#if (eq @context "child")}}
2022-01-03 16:37:57 +00:00
<td data-test-job-submit-time>
{{format-month-ts this.job.submitTime}}
</td>
{{/if}}
<td data-test-job-status>
2022-01-03 16:37:57 +00:00
<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}}
2017-09-19 14:47:10 +00:00
</td>
<td data-test-job-task-groups>
{{#if this.job.taskGroupCount}}
{{this.job.taskGroupCount}}
2018-02-12 23:27:19 +00:00
{{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}}
2022-01-03 16:37:57 +00:00
<em class="is-faded">
No Children
</em>
{{/if}}
{{else}}
2022-01-14 15:11:22 +00:00
<AllocationStatusBar
@allocationContainer={{this.job}}
@isNarrow={{true}}
/>
{{/if}}
</div>
2022-01-03 16:37:57 +00:00
</td>