40332963ef
This updates to Ember 3.16 but leaves Ember Data at 3.12 so we don’t need to use the model fragments beta. It can be reviewed on a commit-by-commit basis: blueprint updates, fixes for test failures, and the removal of now-deprecated partials. It’s not a true update to Octane as that would involve turning on template-only components by default, which breaks various things. We can accomplish that separately and then add the edition setting to package.json.
40 lines
1.3 KiB
Handlebars
40 lines
1.3 KiB
Handlebars
{{title "Servers"}}
|
|
<section class="section">
|
|
{{#if isForbidden}}
|
|
<ForbiddenMessage />
|
|
{{else}}
|
|
<ListPagination
|
|
@source={{sortedAgents}}
|
|
@size={{pageSize}}
|
|
@page={{currentPage}} as |p|>
|
|
<ListTable
|
|
@source={{p.list}}
|
|
@sortProperty={{sortProperty}}
|
|
@sortDescending={{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 {{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>
|