mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
chore: prettify job-row template
This commit is contained in:
@@ -1,15 +1,34 @@
|
||||
<td data-test-job-name><LinkTo @route="jobs.job" @model={{this.job.plainId}} @query={{hash namespace=this.job.namespace.id}} class="is-primary">{{this.job.name}}</LinkTo></td>
|
||||
<td data-test-job-name>
|
||||
<LinkTo
|
||||
@route="jobs.job"
|
||||
@model={{this.job.plainId}}
|
||||
@query={{hash namespace=this.job.namespace.id}}
|
||||
class="is-primary"
|
||||
>
|
||||
{{this.job.name}}
|
||||
</LinkTo>
|
||||
</td>
|
||||
{{#if this.system.shouldShowNamespaces}}
|
||||
<td data-test-job-namespace>{{this.job.namespace.name}}</td>
|
||||
<td data-test-job-namespace>
|
||||
{{this.job.namespace.name}}
|
||||
</td>
|
||||
{{/if}}
|
||||
{{#if (eq @context "child")}}
|
||||
<td data-test-job-submit-time>{{format-month-ts this.job.submitTime}}</td>
|
||||
<td data-test-job-submit-time>
|
||||
{{format-month-ts this.job.submitTime}}
|
||||
</td>
|
||||
{{/if}}
|
||||
<td data-test-job-status>
|
||||
<span class="tag {{this.job.statusClass}}">{{this.job.status}}</span>
|
||||
<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-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}}
|
||||
@@ -23,10 +42,12 @@
|
||||
{{#if (gt this.job.totalChildren 0)}}
|
||||
<ChildrenStatusBar @job={{this.job}} @isNarrow={{true}} />
|
||||
{{else}}
|
||||
<em class="is-faded">No Children</em>
|
||||
<em class="is-faded">
|
||||
No Children
|
||||
</em>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<AllocationStatusBar @allocationContainer={{this.job}} @isNarrow={{true}} />
|
||||
{{/if}}
|
||||
</div>
|
||||
</td>
|
||||
</td>
|
||||
Reference in New Issue
Block a user