github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/templates/components/topo-viz/datacenter.hbs (about)

     1  <div data-test-topo-viz-datacenter class="boxed-section topo-viz-datacenter">
     2    <div data-test-topo-viz-datacenter-label class="boxed-section-head is-hollow">
     3      <strong>{{@datacenter.name}}</strong>
     4      <span class="bumper-left">{{this.scheduledAllocations.length}} Allocs</span>
     5      <span class="bumper-left">{{@datacenter.nodes.length}} Nodes</span>
     6      <span class="bumper-left is-faded">{{format-bytes this.aggregatedAllocationResources.memory start="MiB"}}/{{format-bytes this.aggregatedNodeResources.memory start="MiB"}},
     7        {{format-hertz this.aggregatedAllocationResources.cpu}}/{{format-hertz this.aggregatedNodeResources.cpu}}</span>
     8    </div>
     9    <div class="boxed-section-body">
    10      <FlexMasonry @columns={{if @isSingleColumn 1 2}} @items={{@datacenter.nodes}} as |node|>
    11        <TopoViz::Node
    12          @node={{node}}
    13          @isDense={{@isDense}}
    14          @heightScale={{@heightScale}}
    15          @onAllocationSelect={{@onAllocationSelect}}
    16          @onAllocationFocus={{@onAllocationFocus}}
    17          @onAllocationBlur={{@onAllocationBlur}}
    18          @onNodeSelect={{@onNodeSelect}} />
    19      </FlexMasonry>
    20    </div>
    21  </div>