github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/app/templates/clients/index.hbs (about) 1 {{#global-header class="page-header"}} 2 <li class="is-active"> 3 {{#link-to "clients.index"}}Clients{{/link-to}} 4 </li> 5 {{/global-header}} 6 {{#gutter-menu class="page-body"}} 7 <section class="section"> 8 {{#if isForbidden}} 9 {{partial "partials/forbidden-message"}} 10 {{else}} 11 {{#if nodes.length}} 12 <div class="content"> 13 <div>{{search-box searchTerm=(mut searchTerm) placeholder="Search clients..."}}</div> 14 </div> 15 {{/if}} 16 {{#list-pagination 17 source=sortedNodes 18 size=pageSize 19 page=currentPage as |p|}} 20 {{#list-table 21 source=p.list 22 sortProperty=sortProperty 23 sortDescending=sortDescending 24 class="with-foot" as |t|}} 25 {{#t.head}} 26 {{#t.sort-by prop="id"}}ID{{/t.sort-by}} 27 {{#t.sort-by class="is-200px is-truncatable" prop="name"}}Name{{/t.sort-by}} 28 {{#t.sort-by prop="status"}}Status{{/t.sort-by}} 29 <th>Address</th> 30 <th>Port</th> 31 {{#t.sort-by prop="datacenter"}}Datacenter{{/t.sort-by}} 32 <th># Allocs</th> 33 {{/t.head}} 34 {{#t.body as |row|}} 35 {{client-node-row data-test-client-node-row node=row.model onClick=(action "gotoNode" row.model)}} 36 {{/t.body}} 37 {{/list-table}} 38 <div class="table-foot"> 39 <nav class="pagination" data-test-pagination> 40 <div class="pagination-numbers"> 41 {{p.startsAt}}–{{p.endsAt}} of {{sortedNodes.length}} 42 </div> 43 {{#p.prev class="pagination-previous"}} < {{/p.prev}} 44 {{#p.next class="pagination-next"}} > {{/p.next}} 45 <ul class="pagination-list"></ul> 46 </nav> 47 </div> 48 {{else}} 49 <div class="empty-message" data-test-empty-clients-list> 50 {{#if (eq nodes.length 0)}} 51 <h3 class="empty-message-headline" data-test-empty-clients-list-headline>No Clients</h3> 52 <p class="empty-message-body"> 53 The cluster currently has no client nodes. 54 </p> 55 {{else if searchTerm}} 56 <h3 class="empty-message-headline" data-test-empty-clients-list-headline>No Matches</h3> 57 <p class="empty-message-body">No clients match the term <strong>{{searchTerm}}</strong></p> 58 {{/if}} 59 </div> 60 {{/list-pagination}} 61 {{/if}} 62 </section> 63 {{/gutter-menu}}