mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
Use page-layout for servers routes
This commit is contained in:
@@ -1,46 +1,41 @@
|
||||
<div class="page-layout">
|
||||
{{#global-header class="page-header"}}
|
||||
{{app-breadcrumbs}}
|
||||
{{/global-header}}
|
||||
{{#gutter-menu class="page-body"}}
|
||||
<section class="section">
|
||||
{{#if isForbidden}}
|
||||
{{partial "partials/forbidden-message"}}
|
||||
{{else}}
|
||||
{{#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|}}
|
||||
{{server-agent-row data-test-server-agent-row agent=row.model}}
|
||||
{{/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}}
|
||||
</section>
|
||||
{{/gutter-menu}}
|
||||
</div>
|
||||
{{#page-layout}}
|
||||
<section class="section">
|
||||
{{#if isForbidden}}
|
||||
{{partial "partials/forbidden-message"}}
|
||||
{{else}}
|
||||
{{#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|}}
|
||||
{{server-agent-row data-test-server-agent-row agent=row.model}}
|
||||
{{/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}}
|
||||
</section>
|
||||
{{/page-layout}}
|
||||
|
||||
Reference in New Issue
Block a user