github.com/hernad/nomad@v1.6.112/ui/app/templates/servers/index.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 {{page-title "Servers"}} 7 <section class="section"> 8 {{#if this.isForbidden}} 9 <ForbiddenMessage /> 10 {{else}} 11 <ListPagination 12 @source={{this.sortedAgents}} 13 @size={{this.pageSize}} 14 @page={{this.currentPage}} as |p|> 15 <ListTable 16 @source={{p.list}} 17 @sortProperty={{this.sortProperty}} 18 @sortDescending={{this.sortDescending}} 19 @class="with-foot" as |t|> 20 <t.head> 21 <t.sort-by @prop="name">Name</t.sort-by> 22 <t.sort-by @prop="status">Status</t.sort-by> 23 <t.sort-by @prop="isLeader">Leader</t.sort-by> 24 <t.sort-by @class="is-200px is-truncatable" @prop="address">Address</t.sort-by> 25 <t.sort-by @prop="serfPort">port</t.sort-by> 26 <t.sort-by @prop="datacenter">Datacenter</t.sort-by> 27 <t.sort-by @prop="version">Version</t.sort-by> 28 </t.head> 29 <t.body as |row|> 30 <ServerAgentRow data-test-server-agent-row @agent={{row.model}} /> 31 </t.body> 32 </ListTable> 33 <div class="table-foot"> 34 <nav class="pagination"> 35 <div class="pagination-numbers"> 36 {{p.startsAt}}–{{p.endsAt}} of {{this.sortedAgents.length}} 37 </div> 38 <p.prev @class="pagination-previous"> < </p.prev> 39 <p.next @class="pagination-next"> > </p.next> 40 <ul class="pagination-list"></ul> 41 </nav> 42 </div> 43 </ListPagination> 44 {{/if}} 45 </section>