2017-09-19 14:47:10 +00:00
|
|
|
{{#global-header class="page-header"}}
|
2017-12-20 01:25:35 +00:00
|
|
|
{{#each breadcrumbs as |breadcrumb index|}}
|
|
|
|
<li class="{{if (eq (inc index) breadcrumbs.length) "is-active"}}">
|
|
|
|
{{#link-to
|
2018-01-05 20:59:36 +00:00
|
|
|
data-test-breadcrumb=breadcrumb.label
|
2018-03-13 21:47:09 +00:00
|
|
|
params=breadcrumb.args}}
|
2017-12-20 01:25:35 +00:00
|
|
|
{{breadcrumb.label}}
|
|
|
|
{{/link-to}}
|
|
|
|
</li>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/each}}
|
|
|
|
{{/global-header}}
|
2017-10-23 23:59:30 +00:00
|
|
|
{{#gutter-menu class="page-body" onNamespaceChange=(action "gotoJobs")}}
|
2017-09-19 14:47:10 +00:00
|
|
|
<div class="tabs is-subnav">
|
|
|
|
<ul>
|
|
|
|
<li>{{#link-to "jobs.job.task-group" model.job model activeClass="is-active"}}Overview{{/link-to}}</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<section class="section">
|
|
|
|
<h1 class="title">
|
|
|
|
{{model.name}}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="boxed-section is-small">
|
|
|
|
<div class="boxed-section-body inline-definitions">
|
|
|
|
<span class="label">Task Group Details</span>
|
|
|
|
|
2018-01-05 20:59:36 +00:00
|
|
|
<span class="pair" data-test-task-group-tasks><span class="term"># Tasks</span> {{model.tasks.length}}</span>
|
|
|
|
<span class="pair" data-test-task-group-cpu><span class="term">Reserved CPU</span> {{model.reservedCPU}} MHz</span>
|
|
|
|
<span class="pair" data-test-task-group-mem><span class="term">Reserved Memory</span> {{model.reservedMemory}} MiB</span>
|
|
|
|
<span class="pair" data-test-task-group-disk><span class="term">Reserved Disk</span> {{model.reservedEphemeralDisk}} MiB</span>
|
2017-09-19 14:47:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
<div>Allocation Status <span class="badge is-white">{{allocations.length}}</span></div>
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
{{#allocation-status-bar allocationContainer=model.summary class="split-view" as |chart|}}
|
|
|
|
<ol class="legend">
|
|
|
|
{{#each chart.data as |datum index|}}
|
|
|
|
<li class="{{datum.className}} {{if (eq datum.index chart.activeDatum.index) "is-active"}} {{if (eq datum.value 0) "is-empty"}}">
|
|
|
|
<span class="color-swatch {{if datum.className datum.className (concat "swatch-" index)}}" />
|
|
|
|
<span class="value">{{datum.value}}</span>
|
|
|
|
<span class="label">
|
|
|
|
{{datum.label}}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
{{/allocation-status-bar}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Allocations
|
|
|
|
{{search-box
|
|
|
|
searchTerm=(mut searchTerm)
|
|
|
|
placeholder="Search allocations..."
|
|
|
|
class="is-inline pull-right"
|
|
|
|
inputClass="is-compact"}}
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
|
|
|
{{#list-pagination
|
|
|
|
source=sortedAllocations
|
|
|
|
size=pageSize
|
|
|
|
page=currentPage
|
|
|
|
class="allocations" as |p|}}
|
|
|
|
{{#list-table
|
|
|
|
source=p.list
|
|
|
|
sortProperty=sortProperty
|
2017-10-18 00:52:31 +00:00
|
|
|
sortDescending=sortDescending
|
|
|
|
class="with-foot" as |t|}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{#t.head}}
|
2018-05-02 21:01:34 +00:00
|
|
|
<th class="is-narrow"></th>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{#t.sort-by prop="shortId"}}ID{{/t.sort-by}}
|
2017-10-18 00:49:59 +00:00
|
|
|
{{#t.sort-by prop="modifyIndex" title="Modify Index"}}Modified{{/t.sort-by}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{#t.sort-by prop="name"}}Name{{/t.sort-by}}
|
2017-10-18 00:48:52 +00:00
|
|
|
{{#t.sort-by prop="statusIndex"}}Status{{/t.sort-by}}
|
2017-10-18 19:29:33 +00:00
|
|
|
{{#t.sort-by prop="jobVersion"}}Version{{/t.sort-by}}
|
2017-10-28 01:13:33 +00:00
|
|
|
{{#t.sort-by prop="node.shortId"}}Client{{/t.sort-by}}
|
2017-09-19 14:47:10 +00:00
|
|
|
<th>CPU</th>
|
|
|
|
<th>Memory</th>
|
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body as |row|}}
|
2018-05-04 21:31:04 +00:00
|
|
|
{{allocation-row data-test-allocation=row.model.id allocation=row.model context="job" onClick=(action "gotoAllocation" row.model)}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
2017-10-18 00:52:31 +00:00
|
|
|
<div class="table-foot">
|
|
|
|
<nav class="pagination">
|
|
|
|
<div class="pagination-numbers">
|
|
|
|
{{p.startsAt}}–{{p.endsAt}} of {{sortedAllocations.length}}
|
|
|
|
</div>
|
|
|
|
{{#p.prev class="pagination-previous"}} < {{/p.prev}}
|
|
|
|
{{#p.next class="pagination-next"}} > {{/p.next}}
|
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2017-10-02 19:44:07 +00:00
|
|
|
{{else}}
|
2018-01-26 22:36:50 +00:00
|
|
|
{{#if allocations.length}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="empty-message" data-test-empty-allocations-list>
|
|
|
|
<h3 class="empty-message-headline" data-test-empty-allocations-list-headline>No Matches</h3>
|
|
|
|
<p class="empty-message-body">No allocations match the term <strong>{{searchTerm}}</strong></p>
|
|
|
|
</div>
|
2017-10-02 19:44:07 +00:00
|
|
|
</div>
|
2018-01-26 22:36:50 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="empty-message" data-test-empty-allocations-list>
|
|
|
|
<h3 class="empty-message-headline" data-test-empty-allocations-list-headline>No Allocations</h3>
|
|
|
|
<p class="empty-message-body">No allocations have been placed.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/list-pagination}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{/gutter-menu}}
|