github.com/hernad/nomad@v1.6.112/ui/app/components/das/recommendation-row.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 {{#if @summary.taskGroup.allocations.length}} 7 {{! Prevent storing aggregate diffs until allocation count is known }} 8 <tr 9 class="recommendation-row" 10 ...attributes 11 data-test-recommendation-summary-row 12 {{did-insert this.storeDiffs}} 13 > 14 <td> 15 <div data-test-slug> 16 <span class="job">{{@summary.taskGroup.job.name}}</span> 17 / 18 <span class="task-group">{{@summary.taskGroup.name}}</span> 19 </div> 20 <div class="namespace"> 21 Namespace: 22 <span data-test-namespace>{{@summary.jobNamespace}}</span> 23 </div> 24 </td> 25 <td data-test-date> 26 {{format-month-ts @summary.submitTime}} 27 </td> 28 <td data-test-allocation-count> 29 {{@summary.taskGroup.count}} 30 </td> 31 <td data-test-cpu> 32 {{#if this.cpu.delta}} 33 {{this.cpu.signedDiff}} 34 <span class="percent">{{this.cpu.percentDiff}}</span> 35 {{/if}} 36 </td> 37 <td data-test-memory> 38 {{#if this.memory.delta}} 39 {{this.memory.signedDiff}} 40 <span class="percent">{{this.memory.percentDiff}}</span> 41 {{/if}} 42 </td> 43 <td data-test-aggregate-cpu> 44 {{#if this.cpu.delta}} 45 {{this.cpu.signedAggregateDiff}} 46 {{/if}} 47 </td> 48 <td data-test-aggregate-memory> 49 {{#if this.memory.delta}} 50 {{this.memory.signedAggregateDiff}} 51 {{/if}} 52 </td> 53 </tr> 54 {{/if}}