2017-09-19 14:47:10 +00:00
|
|
|
{{#gutter-menu class="page-body"}}
|
|
|
|
<section class="section">
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#if isForbidden}}
|
|
|
|
{{partial "partials/forbidden-message"}}
|
2017-09-30 01:33:57 +00:00
|
|
|
{{else}}
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#if nodes.length}}
|
|
|
|
<div class="content">
|
2017-10-28 01:13:33 +00:00
|
|
|
<div>{{search-box searchTerm=(mut searchTerm) placeholder="Search clients..."}}</div>
|
2017-10-24 23:07:43 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#list-pagination
|
|
|
|
source=sortedNodes
|
|
|
|
size=pageSize
|
|
|
|
page=currentPage as |p|}}
|
|
|
|
{{#list-table
|
|
|
|
source=p.list
|
|
|
|
sortProperty=sortProperty
|
|
|
|
sortDescending=sortDescending
|
|
|
|
class="with-foot" as |t|}}
|
|
|
|
{{#t.head}}
|
2018-05-08 18:24:11 +00:00
|
|
|
<th class="is-narrow"></th>
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#t.sort-by prop="id"}}ID{{/t.sort-by}}
|
|
|
|
{{#t.sort-by class="is-200px is-truncatable" prop="name"}}Name{{/t.sort-by}}
|
|
|
|
{{#t.sort-by prop="status"}}Status{{/t.sort-by}}
|
2018-05-29 17:06:48 +00:00
|
|
|
{{#t.sort-by prop="isDraining"}}Drain{{/t.sort-by}}
|
|
|
|
{{#t.sort-by prop="schedulingEligibility"}}Eligibility{{/t.sort-by}}
|
2017-10-24 23:07:43 +00:00
|
|
|
<th>Address</th>
|
|
|
|
{{#t.sort-by prop="datacenter"}}Datacenter{{/t.sort-by}}
|
|
|
|
<th># Allocs</th>
|
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body as |row|}}
|
2018-01-05 20:59:36 +00:00
|
|
|
{{client-node-row data-test-client-node-row node=row.model onClick=(action "gotoNode" row.model)}}
|
2017-10-24 23:07:43 +00:00
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
|
|
|
<div class="table-foot">
|
2018-01-05 20:59:36 +00:00
|
|
|
<nav class="pagination" data-test-pagination>
|
2017-10-24 23:07:43 +00:00
|
|
|
<div class="pagination-numbers">
|
|
|
|
{{p.startsAt}}–{{p.endsAt}} of {{sortedNodes.length}}
|
|
|
|
</div>
|
|
|
|
{{#p.prev class="pagination-previous"}} < {{/p.prev}}
|
|
|
|
{{#p.next class="pagination-next"}} > {{/p.next}}
|
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<div class="empty-message" data-test-empty-clients-list>
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#if (eq nodes.length 0)}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h3 class="empty-message-headline" data-test-empty-clients-list-headline>No Clients</h3>
|
2017-10-24 23:07:43 +00:00
|
|
|
<p class="empty-message-body">
|
2017-10-24 23:11:01 +00:00
|
|
|
The cluster currently has no client nodes.
|
2017-10-24 23:07:43 +00:00
|
|
|
</p>
|
|
|
|
{{else if searchTerm}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h3 class="empty-message-headline" data-test-empty-clients-list-headline>No Matches</h3>
|
2017-10-24 23:07:43 +00:00
|
|
|
<p class="empty-message-body">No clients match the term <strong>{{searchTerm}}</strong></p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/list-pagination}}
|
2017-10-24 23:07:43 +00:00
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</section>
|
|
|
|
{{/gutter-menu}}
|