Files
nomad/ui/app/templates/jobs/job/evaluations.hbs
Buck Doyle 2241b669f2 Update to Ember 3.16/Data 3.12 (#8319)
This updates to Ember 3.16 but leaves Ember Data at 3.12 so we don’t need
to use the model fragments beta. It can be reviewed on a commit-by-commit
basis: blueprint updates, fixes for test failures, and the removal of
now-deprecated partials.

It’s not a true update to Octane as that would involve turning on template-only
components by default, which breaks various things. We can accomplish that
separately and then add the edition setting to package.json.
2020-07-09 11:37:00 -05:00

43 lines
1.6 KiB
Handlebars

{{title "Job " job.name " evaluations"}}
<JobSubnav @job={{job}} />
<section class="section">
{{#if sortedEvaluations.length}}
<ListTable
@source={{sortedEvaluations}}
@sortProperty={{sortProperty}}
@sortDescending={{sortDescending}} as |t|>
<t.head>
<th>ID</th>
<t.sort-by @prop="priority">Priority</t.sort-by>
<t.sort-by @prop="createTime">Created</t.sort-by>
<t.sort-by @prop="triggeredBy">Triggered By</t.sort-by>
<t.sort-by @prop="status">Status</t.sort-by>
<t.sort-by @prop="hasPlacementFailures">Placement Failures</t.sort-by>
</t.head>
<t.body as |row|>
<tr data-test-evaluation="{{row.model.shortId}}">
<td data-test-id>{{row.model.shortId}}</td>
<td data-test-priority>{{row.model.priority}}</td>
<td data-test-create-time>{{format-month-ts row.model.createTime}}</td>
<td data-test-triggered-by>{{row.model.triggeredBy}}</td>
<td data-test-status>{{row.model.status}}</td>
<td data-test-blocked>
{{#if (eq row.model.status "blocked")}}
N/A - In Progress
{{else if row.model.hasPlacementFailures}}
True
{{else}}
False
{{/if}}
</td>
</tr>
</t.body>
</ListTable>
{{else}}
<div data-test-empty-evaluations-list class="empty-message">
<h3 data-test-empty-evaluations-list-headline class="empty-message-headline">No Evaluations</h3>
<p class="empty-message-body">This is most likely due to garbage collection.</p>
</div>
{{/if}}
</section>