2998deac50
This is mostly a direct application of the ember-angle-brackets-codemod. I manually restored newlines in multi-line component invocations, usually preserving file line length except for now-non-positional link-to @route. I needed to rename task to taskState in some cases to avoid Ember Concurrency naming conflicts.
42 lines
1.4 KiB
Handlebars
42 lines
1.4 KiB
Handlebars
<PageLayout>
|
|
<section class="section">
|
|
{{#if isForbidden}}
|
|
{{partial "partials/forbidden-message"}}
|
|
{{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>
|
|
{{outlet}}
|
|
{{/if}}
|
|
</section>
|
|
</PageLayout>
|