github.com/hernad/nomad@v1.6.112/ui/app/components/das/task-row.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 <tr 7 class={{if @active 'active'}} 8 {{on 'click' @onClick}} 9 {{did-insert this.calculateHeight}} 10 data-test-task-toggles 11 > 12 <td class="task-cell" data-test-name colspan="2">{{@task.name}}</td> 13 <td class="toggle-cell"> 14 <Toggle 15 data-test-cpu-toggle 16 @isActive={{@cpu.isActive}} 17 @onToggle={{action @toggleRecommendation @cpu.recommendation}} 18 @isDisabled={{not @cpu.recommendation}} 19 title={{concat 'CPU for ' @task.name}} 20 /> 21 </td> 22 <td class="toggle-cell"> 23 <Toggle 24 data-test-memory-toggle 25 @isActive={{@memory.isActive}} 26 @onToggle={{action @toggleRecommendation @memory.recommendation}} 27 @isDisabled={{not @memory.recommendation}} 28 title={{concat 'Memory for ' @task.name}} 29 /> 30 31 {{#if (and @active this.height)}} 32 <svg width={{this.height}} height={{this.height}}> 33 <rect class="border-cover" x="0" y="1" height={{this.borderCoverHeight}} /> 34 <polyline class="triangle" points="1 1 {{this.half}} {{this.half}} 1 {{this.height}}" /> 35 </svg> 36 {{/if}} 37 </td> 38 </tr>