244157786a
This is the result of running the no-implicit-this-codemod, some manual fixes, and the addition of a linting rule to prevent future ambiguity.
40 lines
1.3 KiB
Handlebars
40 lines
1.3 KiB
Handlebars
{{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 @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.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>
|