github.com/emate/nomad@v0.8.2-wo-binpacking/ui/app/templates/components/job-page/parts/summary.hbs (about) 1 <div class="boxed-section-head"> 2 <div> 3 {{#if job.hasChildren}} 4 Children Status <span class="badge is-white">{{summary.totalChildren}}</span> 5 {{else}} 6 Allocation Status <span class="badge is-white">{{summary.totalAllocs}}</span> 7 {{/if}} 8 </div> 9 </div> 10 <div class="boxed-section-body"> 11 {{#component (if job.hasChildren "children-status-bar" "allocation-status-bar") 12 allocationContainer=summary 13 job=summary 14 class="split-view" as |chart|}} 15 <ol data-test-legend class="legend"> 16 {{#each chart.data as |datum index|}} 17 <li class="{{datum.className}} {{if (eq datum.index chart.activeDatum.index) "is-active"}} {{if (eq datum.value 0) "is-empty"}}"> 18 <span class="color-swatch {{if datum.className datum.className (concat "swatch-" index)}}" /> 19 <span class="value" data-test-legend-value="{{datum.className}}">{{datum.value}}</span> 20 <span class="label"> 21 {{datum.label}} 22 </span> 23 </li> 24 {{/each}} 25 </ol> 26 {{/component}} 27 </div>