open-nomad/ui/app/templates/components/task-group-row.hbs
2020-06-30 11:54:11 -07:00

41 lines
1.5 KiB
Handlebars

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