44 lines
1.8 KiB
Handlebars
44 lines
1.8 KiB
Handlebars
<td data-test-task-group-name>
|
|
<LinkTo @route="jobs.job.task-group" @models={{array this.taskGroup.job this.taskGroup}} class="is-primary">
|
|
{{this.taskGroup.name}}
|
|
</LinkTo>
|
|
</td>
|
|
<td data-test-task-group-count class="nowrap">
|
|
{{this.count}}
|
|
{{#if this.taskGroup.scaling}}
|
|
<div
|
|
data-test-scale-controls
|
|
class="button-bar is-shadowless is-text bumper-left {{if (or this.runningDeployment (cannot "scale job" namespace=this.namespace)) "tooltip multiline"}}"
|
|
aria-label={{this.tooltipText}}>
|
|
<button
|
|
data-test-scale="decrement"
|
|
role="button"
|
|
aria-label="decrement"
|
|
class="button is-xsmall is-light"
|
|
disabled={{or this.isMinimum this.runningDeployment (cannot "scale job" namespace=this.namespace)}}
|
|
onclick={{action "countDown"}}
|
|
type="button">
|
|
{{x-icon "minus-plain" class="is-text"}}
|
|
</button>
|
|
<button
|
|
data-test-scale-controls-increment
|
|
data-test-scale="increment"
|
|
role="button"
|
|
aria-label="increment"
|
|
class="button is-xsmall is-light"
|
|
disabled={{or this.isMaximum this.runningDeployment (cannot "scale job" namespace=this.namespace)}}
|
|
onclick={{action "countUp"}}
|
|
type="button">
|
|
{{x-icon "plus-plain" class="is-text"}}
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
</td>
|
|
<td data-test-task-group-allocs>
|
|
<div class="inline-chart"><AllocationStatusBar @allocationContainer={{this.taskGroup.summary}} @isNarrow={{true}} /></div>
|
|
</td>
|
|
<td data-test-task-group-volume>{{if this.taskGroup.volumes.length "Yes"}}</td>
|
|
<td data-test-task-group-cpu>{{format-scheduled-hertz this.taskGroup.reservedCPU}}</td>
|
|
<td data-test-task-group-mem>{{format-scheduled-bytes this.taskGroup.reservedMemory start="MiB"}}</td>
|
|
<td data-test-task-group-disk>{{format-scheduled-bytes this.taskGroup.reservedEphemeralDisk start="MiB"}}</td>
|