2021-12-20 20:40:30 +00:00
|
|
|
{{page-title "Evaluations"}}
|
|
|
|
<section class="section">
|
|
|
|
<ListTable @source={{@model}} as |t|>
|
|
|
|
<t.head>
|
|
|
|
<th>
|
|
|
|
Evaluation ID
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Resource
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Priority
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Created
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Triggered By
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Status
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Placement Failures
|
|
|
|
</th>
|
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
|
|
|
<tr data-test-evaluation="{{row.model.shortId}}">
|
|
|
|
<td data-test-id>
|
|
|
|
{{row.model.shortId}}
|
|
|
|
</td>
|
|
|
|
<td data-test-id>
|
|
|
|
Resource Placeholder
|
|
|
|
</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>
|
2021-12-20 21:04:57 +00:00
|
|
|
<StatusCell @status={{row.model.status}} />
|
2021-12-20 20:40:30 +00:00
|
|
|
</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>
|
|
|
|
<div class="table-foot">
|
|
|
|
<PageSizeSelect @onChange={{this.onChange}} />
|
2021-12-21 18:31:28 +00:00
|
|
|
<button type="button" {{on "click" this.refresh}}>
|
|
|
|
Refresh
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
disabled={{this.shouldDisablePrev}}
|
|
|
|
{{on "click" (fn this.onPrev this.lastToken)}}
|
|
|
|
>
|
|
|
|
Prev
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
disabled={{this.shouldDisableNext}}
|
|
|
|
{{on "click" (fn this.onNext @model.meta.nextToken)}}
|
|
|
|
>
|
|
|
|
Next >
|
|
|
|
</button>
|
2021-12-20 20:40:30 +00:00
|
|
|
</div>
|
|
|
|
</section>
|