github.com/thomasobenaus/nomad@v0.11.1/ui/app/templates/csi/volumes/index.hbs (about)

     1  {{title "CSI Volumes"}}
     2  <section class="section">
     3    {{#if isForbidden}}
     4      {{partial "partials/forbidden-message"}}
     5    {{else}}
     6      {{#if sortedVolumes}}
     7        {{#list-pagination
     8          source=sortedVolumes
     9          size=pageSize
    10          page=currentPage as |p|}}
    11          {{#list-table
    12            source=p.list
    13            sortProperty=sortProperty
    14            sortDescending=sortDescending
    15            class="with-foot" as |t|}}
    16            {{#t.head}}
    17              {{#t.sort-by prop="name"}}Name{{/t.sort-by}}
    18              {{#t.sort-by prop="schedulable"}}Volume Health{{/t.sort-by}}
    19              {{#t.sort-by prop="controllersHealthyProportion"}}Controller Health{{/t.sort-by}}
    20              {{#t.sort-by prop="nodesHealthyProportion"}}Node Health{{/t.sort-by}}
    21              {{#t.sort-by prop="provider"}}Provider{{/t.sort-by}}
    22              <th># Allocs</th>
    23            {{/t.head}}
    24            {{#t.body key="model.name" as |row|}}
    25              <tr class="is-interactive" data-test-volume-row {{on "click" (action "gotoVolume" row.model)}}>
    26                <td data-test-volume-name>
    27                  {{#link-to "csi.volumes.volume" row.model.plainId class="is-primary"}}{{row.model.name}}{{/link-to}}
    28                </td>
    29                <td data-test-volume-schedulable>{{if row.model.schedulable "Schedulable" "Unschedulable"}}</td>
    30                <td data-test-volume-controller-health>
    31                  {{if (gt row.model.controllersHealthy 0) "Healthy" "Unhealthy"}}
    32                  ({{row.model.controllersHealthy}}/{{row.model.controllersExpected}})
    33                </td>
    34                <td data-test-volume-node-health>
    35                  {{if (gt row.model.nodesHealthy 0) "Healthy" "Unhealthy"}}
    36                  ({{row.model.nodesHealthy}}/{{row.model.nodesExpected}})
    37                </td>
    38                <td data-test-volume-provider>{{row.model.provider}}</td>
    39                <td data-test-volume-allocations>{{row.model.allocations.length}}</td>
    40              </tr>
    41            {{/t.body}}
    42          {{/list-table}}
    43          <div class="table-foot">
    44            {{page-size-select onChange=(action resetPagination)}}
    45            <nav class="pagination">
    46              <div class="pagination-numbers">
    47                {{p.startsAt}}&ndash;{{p.endsAt}} of {{sortedVolumes.length}}
    48              </div>
    49              {{#p.prev class="pagination-previous"}}{{x-icon "chevron-left"}}{{/p.prev}}
    50              {{#p.next class="pagination-next"}}{{x-icon "chevron-right"}}{{/p.next}}
    51              <ul class="pagination-list"></ul>
    52            </nav>
    53          </div>
    54        {{/list-pagination}}
    55      {{else}}
    56        <div data-test-empty-volumes-list class="empty-message">
    57          {{#if (eq sortedVolumes.length 0)}}
    58            <h3 data-test-empty-volumes-list-headline class="empty-message-headline">No Volumes</h3>
    59            <p class="empty-message-body">
    60              The cluster currently has no CSI Volumes.
    61            </p>
    62          {{/if}}
    63        </div>
    64      {{/if}}
    65    {{/if}}
    66  </section>