github.com/manicqin/nomad@v0.9.5/ui/app/templates/components/job-page/parts/recent-allocations.hbs (about) 1 <div class="boxed-section"> 2 <div class="boxed-section-head"> 3 Recent Allocations 4 </div> 5 <div class="boxed-section-body {{if job.allocations.length "is-full-bleed"}}"> 6 {{#if job.allocations.length}} 7 {{#list-table 8 source=sortedAllocations 9 sortProperty=sortProperty 10 sortDescending=sortDescending 11 class="with-foot" as |t|}} 12 {{#t.head}} 13 <th class="is-narrow"></th> 14 <th>ID</th> 15 <th>Task Group</th> 16 <th>Created</th> 17 <th>Modified</th> 18 <th>Status</th> 19 <th>Version</th> 20 <th>Client</th> 21 <th>CPU</th> 22 <th>Memory</th> 23 {{/t.head}} 24 {{#t.body as |row|}} 25 {{allocation-row 26 data-test-allocation=row.model.id 27 allocation=row.model 28 context="job" 29 onClick=(action "gotoAllocation" row.model)}} 30 {{/t.body}} 31 {{/list-table}} 32 {{else}} 33 <div class="empty-message" data-test-empty-recent-allocations> 34 <h3 class="empty-message-headline" data-test-empty-recent-allocations-headline>No Allocations</h3> 35 <p class="empty-message-body" data-test-empty-recent-allocations-message>No allocations have been placed.</p> 36 </div> 37 {{/if}} 38 </div> 39 {{#if job.allocations.length}} 40 <div class="boxed-section-foot"> 41 <p class="pull-right" data-test-view-all-allocations>{{#link-to "jobs.job.allocations" job}} 42 View all {{job.allocations.length}} {{pluralize "allocation" job.allocations.length}} 43 {{/link-to}}</p> 44 </div> 45 {{/if}} 46 </div>