99185e2d8f
* Remove the newline after .hbs copyright headers * Trying with the whitespace control char
46 lines
1.5 KiB
Handlebars
46 lines
1.5 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
~}}
|
|
|
|
{{page-title "Servers"}}
|
|
<section class="section">
|
|
{{#if this.isForbidden}}
|
|
<ForbiddenMessage />
|
|
{{else}}
|
|
<ListPagination
|
|
@source={{this.sortedAgents}}
|
|
@size={{this.pageSize}}
|
|
@page={{this.currentPage}} as |p|>
|
|
<ListTable
|
|
@source={{p.list}}
|
|
@sortProperty={{this.sortProperty}}
|
|
@sortDescending={{this.sortDescending}}
|
|
@class="with-foot" as |t|>
|
|
<t.head>
|
|
<t.sort-by @prop="name">Name</t.sort-by>
|
|
<t.sort-by @prop="status">Status</t.sort-by>
|
|
<t.sort-by @prop="isLeader">Leader</t.sort-by>
|
|
<t.sort-by @class="is-200px is-truncatable" @prop="address">Address</t.sort-by>
|
|
<t.sort-by @prop="serfPort">port</t.sort-by>
|
|
<t.sort-by @prop="datacenter">Datacenter</t.sort-by>
|
|
<t.sort-by @prop="version">Version</t.sort-by>
|
|
</t.head>
|
|
<t.body as |row|>
|
|
<ServerAgentRow data-test-server-agent-row @agent={{row.model}} />
|
|
</t.body>
|
|
</ListTable>
|
|
<div class="table-foot">
|
|
<nav class="pagination">
|
|
<div class="pagination-numbers">
|
|
{{p.startsAt}}–{{p.endsAt}} of {{this.sortedAgents.length}}
|
|
</div>
|
|
<p.prev @class="pagination-previous"> < </p.prev>
|
|
<p.next @class="pagination-next"> > </p.next>
|
|
<ul class="pagination-list"></ul>
|
|
</nav>
|
|
</div>
|
|
</ListPagination>
|
|
{{/if}}
|
|
</section>
|