open-nomad/ui/app/templates/components/topo-viz/datacenter.hbs

20 lines
959 B
Handlebars
Raw Normal View History

2020-10-14 07:54:39 +00:00
<div data-test-topo-viz-datacenter class="boxed-section topo-viz-datacenter">
<div data-test-topo-viz-datacenter-label class="boxed-section-head is-hollow">
2020-09-25 23:37:51 +00:00
<strong>{{@datacenter.name}}</strong>
<span class="bumper-left">{{this.scheduledAllocations.length}} Allocs</span>
<span class="bumper-left">{{@datacenter.nodes.length}} Nodes</span>
<span class="bumper-left is-faded">{{this.aggregatedAllocationResources.memory}}/{{this.aggregatedNodeResources.memory}} MiB,
{{this.aggregatedAllocationResources.cpu}}/{{this.aggregatedNodeResources.cpu}} Mhz</span>
</div>
<div class="boxed-section-body">
<FlexMasonry @columns={{if @isSingleColumn 1 2}} @items={{@datacenter.nodes}} as |node|>
2020-09-25 23:37:51 +00:00
<TopoViz::Node
@node={{node}}
@isDense={{@isDense}}
2020-09-25 23:37:51 +00:00
@heightScale={{@heightScale}}
@onAllocationSelect={{@onAllocationSelect}}
@onNodeSelect={{@onNodeSelect}}/>
</FlexMasonry>
2020-09-03 02:37:13 +00:00
</div>
</div>