github.com/hernad/nomad@v1.6.112/ui/app/templates/components/distribution-bar.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 <svg> 7 <defs> 8 <clipPath> 9 <rect 10 class="mask" 11 x="0" 12 y="0" 13 width="100%" 14 height="100%" 15 rx="2px" 16 ry="2px" 17 ></rect> 18 </clipPath> 19 </defs> 20 <g class="bars"></g> 21 </svg> 22 {{#if (has-block)}} 23 {{yield (hash data=this._data activeDatum=this.activeDatum)}} 24 {{else}} 25 <div 26 class="chart-tooltip with-active-datum 27 {{if this.isActive 'active' 'inactive'}}" 28 style={{this.tooltipStyle}} 29 > 30 <ol> 31 {{#each this._data as |datum index|}} 32 <li class="{{if (eq datum.label this.activeDatum.label) 'is-active'}}"> 33 <span class="label {{if (eq datum.value 0) 'is-empty'}}"> 34 <span 35 class="color-swatch 36 {{if datum.className datum.className (concat 'swatch-' index)}}" 37 ></span> 38 {{datum.label}} 39 </span> 40 <span class="value">{{datum.value}}</span> 41 </li> 42 {{/each}} 43 </ol> 44 </div> 45 {{/if}}