2017-09-19 14:47:10 +00:00
|
|
|
<div class="page-layout">
|
|
|
|
{{#global-header class="page-header"}}
|
2017-12-20 01:25:35 +00:00
|
|
|
<li class="is-active">
|
|
|
|
{{#link-to "servers.index"}}Servers{{/link-to}}
|
|
|
|
</li>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/global-header}}
|
|
|
|
{{#gutter-menu class="page-body"}}
|
|
|
|
<section class="section">
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#if isForbidden}}
|
|
|
|
{{partial "partials/forbidden-message"}}
|
2017-09-30 02:20:28 +00:00
|
|
|
{{else}}
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#list-pagination
|
|
|
|
source=sortedAgents
|
|
|
|
size=pageSize
|
|
|
|
page=currentPage as |p|}}
|
|
|
|
{{#list-table
|
|
|
|
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|}}
|
2018-01-05 20:59:36 +00:00
|
|
|
{{server-agent-row data-test-server-agent-row agent=row.model}}
|
2017-10-24 23:07:43 +00:00
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
|
|
|
<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>
|
|
|
|
{{/list-pagination}}
|
|
|
|
{{outlet}}
|
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</section>
|
|
|
|
{{/gutter-menu}}
|
|
|
|
</div>
|