open-nomad/ui/app/components/das/diffs-table.hbs
Phil Renaud 99185e2d8f
[ui, compliance] Remove the newline after .hbs copyright headers (#16861)
* Remove the newline after .hbs copyright headers

* Trying with the whitespace control char
2023-04-14 13:08:13 -04:00

26 lines
1,007 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<table class='diffs-table' ...attributes>
<tbody>
<tr data-test-current>
<th>Current</th>
<td data-test-cpu>{{@model.reservedCPU}} MHz</td>
<td data-test-memory>{{@model.reservedMemory}} MiB</td>
<th class='diff'>Difference</th>
<td class='diff' data-test-cpu-unit-diff>{{this.diffs.cpu.signedDiff}}</td>
<td class='diff' data-test-memory-unit-diff>{{this.diffs.memory.signedDiff}}</td>
</tr>
<tr data-test-recommended>
<th>Recommended</th>
<td data-test-cpu class={{this.cpuClass}}>{{this.diffs.cpu.recommended}} MHz</td>
<td data-test-memory class={{this.memoryClass}}>{{this.diffs.memory.recommended}} MiB</td>
<th class='diff'>% Difference</th>
<td class='diff' data-test-cpu-percent-diff>{{this.diffs.cpu.percentDiff}}</td>
<td class='diff' data-test-memory-percent-diff>{{this.diffs.memory.percentDiff}}</td>
</tr>
</tbody>
</table>