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