2018-07-19 23:08:51 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Recent Allocations
|
|
|
|
</div>
|
2018-08-15 00:37:15 +00:00
|
|
|
<div class="boxed-section-body {{if job.allocations.length "is-full-bleed"}}">
|
2018-07-19 23:08:51 +00:00
|
|
|
{{#if job.allocations.length}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListTable
|
|
|
|
@source={{sortedAllocations}}
|
|
|
|
@sortProperty={{sortProperty}}
|
|
|
|
@sortDescending={{sortDescending}}
|
|
|
|
@class="with-foot" as |t|>
|
|
|
|
<t.head>
|
2018-07-19 23:08:51 +00:00
|
|
|
<th class="is-narrow"></th>
|
|
|
|
<th>ID</th>
|
2018-07-20 00:24:36 +00:00
|
|
|
<th>Task Group</th>
|
2018-07-19 23:08:51 +00:00
|
|
|
<th>Created</th>
|
|
|
|
<th>Modified</th>
|
|
|
|
<th>Status</th>
|
|
|
|
<th>Version</th>
|
|
|
|
<th>Client</th>
|
2020-02-11 04:51:59 +00:00
|
|
|
<th>Volume</th>
|
2018-07-19 23:08:51 +00:00
|
|
|
<th>CPU</th>
|
|
|
|
<th>Memory</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
|
|
|
<AllocationRow
|
|
|
|
@data-test-allocation={{row.model.id}}
|
|
|
|
@allocation={{row.model}}
|
|
|
|
@context="job"
|
|
|
|
@onClick={{action "gotoAllocation" row.model}} />
|
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2018-07-19 23:08:51 +00:00
|
|
|
{{else}}
|
2018-07-24 03:13:16 +00:00
|
|
|
<div class="empty-message" data-test-empty-recent-allocations>
|
|
|
|
<h3 class="empty-message-headline" data-test-empty-recent-allocations-headline>No Allocations</h3>
|
|
|
|
<p class="empty-message-body" data-test-empty-recent-allocations-message>No allocations have been placed.</p>
|
2018-07-19 23:08:51 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-07-20 00:49:07 +00:00
|
|
|
{{#if job.allocations.length}}
|
|
|
|
<div class="boxed-section-foot">
|
2020-06-01 19:03:56 +00:00
|
|
|
<p class="pull-right" data-test-view-all-allocations><LinkTo @route="jobs.job.allocations" @model={{job}}>
|
2018-07-20 00:49:07 +00:00
|
|
|
View all {{job.allocations.length}} {{pluralize "allocation" job.allocations.length}}
|
2020-06-01 19:03:56 +00:00
|
|
|
</LinkTo></p>
|
2018-07-20 00:49:07 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-19 23:08:51 +00:00
|
|
|
</div>
|