71 lines
3.1 KiB
Handlebars
71 lines
3.1 KiB
Handlebars
{{title "CSI Volumes"}}
|
|
<div class="tabs is-subnav">
|
|
<ul>
|
|
<li data-test-tab="volumes">{{#link-to "csi.volumes.index" activeClass="is-active"}}Volumes{{/link-to}}</li>
|
|
<li data-test-tab="plugins">{{#link-to "csi.plugins.index" activeClass="is-active"}}Plugins{{/link-to}}</li>
|
|
</ul>
|
|
</div>
|
|
<section class="section">
|
|
{{#if isForbidden}}
|
|
{{partial "partials/forbidden-message"}}
|
|
{{else}}
|
|
{{#if sortedVolumes}}
|
|
{{#list-pagination
|
|
source=sortedVolumes
|
|
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="schedulable"}}Volume Health{{/t.sort-by}}
|
|
{{#t.sort-by prop="controllersHealthyProportion"}}Controller Health{{/t.sort-by}}
|
|
{{#t.sort-by prop="nodesHealthyProportion"}}Node Health{{/t.sort-by}}
|
|
{{#t.sort-by prop="provider"}}Provider{{/t.sort-by}}
|
|
<th># Allocs</th>
|
|
{{/t.head}}
|
|
{{#t.body key="model.name" as |row|}}
|
|
<tr class="is-interactive" data-test-volume-row {{on "click" (action "gotoVolume" row.model)}}>
|
|
<td data-test-volume-name>
|
|
{{#link-to "csi.volumes.volume" row.model.plainId class="is-primary"}}{{row.model.name}}{{/link-to}}
|
|
</td>
|
|
<td data-test-volume-schedulable>{{if row.model.schedulable "Schedulable" "Unschedulable"}}</td>
|
|
<td data-test-volume-controller-health>
|
|
{{if (gt row.model.controllersHealthy 0) "Healthy" "Unhealthy"}}
|
|
({{row.model.controllersHealthy}}/{{row.model.controllersExpected}})
|
|
</td>
|
|
<td data-test-volume-node-health>
|
|
{{if (gt row.model.nodesHealthy 0) "Healthy" "Unhealthy"}}
|
|
({{row.model.nodesHealthy}}/{{row.model.nodesExpected}})
|
|
</td>
|
|
<td data-test-volume-provider>{{row.model.provider}}</td>
|
|
<td data-test-volume-allocations>{{row.model.allocations.length}}</td>
|
|
</tr>
|
|
{{/t.body}}
|
|
{{/list-table}}
|
|
<div class="table-foot">
|
|
{{page-size-select onChange=(action resetPagination)}}
|
|
<nav class="pagination">
|
|
<div class="pagination-numbers">
|
|
{{p.startsAt}}–{{p.endsAt}} of {{sortedVolumes.length}}
|
|
</div>
|
|
{{#p.prev class="pagination-previous"}}{{x-icon "chevron-left"}}{{/p.prev}}
|
|
{{#p.next class="pagination-next"}}{{x-icon "chevron-right"}}{{/p.next}}
|
|
<ul class="pagination-list"></ul>
|
|
</nav>
|
|
</div>
|
|
{{/list-pagination}}
|
|
{{else}}
|
|
<div data-test-empty-volumes-list class="empty-message">
|
|
<h3 data-test-empty-volumes-list-headline class="empty-message-headline">No Volumes</h3>
|
|
<p class="empty-message-body">
|
|
The cluster currently has no CSI Volumes.
|
|
</p>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
</section>
|