open-nomad/ui/app/templates/components/job-row.hbs
2018-03-02 16:21:35 -08:00

23 lines
667 B
Handlebars

<td data-test-job-name>{{#link-to "jobs.job" job class="is-primary"}}{{job.name}}{{/link-to}}</td>
<td data-test-job-status>
<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.taskGroups.length}}
{{job.taskGroups.length}}
{{else}}
--
{{/if}}
</td>
<td data-test-job-allocations>
<div class="inline-chart">
{{#if job.hasChildren}}
{{children-status-bar job=job isNarrow=true}}
{{else}}
{{allocation-status-bar allocationContainer=job isNarrow=true}}
{{/if}}
</div>
</td>