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

27 lines
785 B
Handlebars
Raw Normal View History

<td data-test-job-name>{{#link-to "jobs.job" job.plainId class="is-primary"}}{{job.name}}{{/link-to}}</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)}}
{{children-status-bar job=job isNarrow=true}}
{{else}}
<em class="is-faded">No Children</em>
{{/if}}
{{else}}
{{allocation-status-bar allocationContainer=job isNarrow=true}}
{{/if}}
</div>
2017-09-19 14:47:10 +00:00
</td>