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

12 lines
463 B
Handlebars
Raw Normal View History

2020-09-03 02:37:13 +00:00
<div class="topo-viz-node">
<strong>Node! {{@node.name}}</strong> ({{this.count}} allocs) ({{@node.resources.memory}} MiB, {{@node.resources.cpu}} Mhz)
<ul>
{{#each @node.allocations as |allocation|}}
<li>
<LinkTo @route="allocations.allocation" @model={{allocation}}>{{allocation.name}} {{allocation.shortId}}</LinkTo>
({{allocation.resources.memory}} MiB, {{allocation.resources.cpu}} Mhz)
</li>
{{/each}}
</ul>
</div>