blob: f3e79277cf343eaf201f693109fbef6b2fa722dd [file] [log] [blame]
Bhavesh Kumard0b8bae2018-07-31 16:56:43 +05301<!--
2~ Copyright 2018-present Open Networking Foundation
3~
4~ Licensed under the Apache License, Version 2.0 (the "License");
5~ you may not use this file except in compliance with the License.
6~ You may obtain a copy of the License at
7~
8~ http://www.apache.org/licenses/LICENSE-2.0
9~
10~ Unless required by applicable law or agreed to in writing, software
11~ distributed under the License is distributed on an "AS IS" BASIS,
12~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13~ See the License for the specific language governing permissions and
14~ limitations under the License.
15-->
16<div id="ov-partition">
Sean Condon95fb5742019-04-02 12:16:55 +010017 <onos-loading [theme]="'light'" [running]="loadingIconShown"></onos-loading>
Bhavesh Kumard0b8bae2018-07-31 16:56:43 +053018 <div class="tabular-header">
19 <h2>Partitions ({{tableData.length}} total)</h2>
20 <div class="ctrl-btns">
21 <div class="refresh" (click)="toggleRefresh()">
22 <onos-icon classes="{{ autoRefresh?'active refresh':'refresh' }}" iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
23 </div>
24 </div>
25 </div>
26 <div class="summary-list">
27 <div class="table-header">
28 <table onosTableResize>
29 <tr>
30 <td colId="name" [ngStyle]="{width: '100px'}" (click)="onSort('name')">Name
31 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('name')"></onos-icon>
32 </td>
33 <td colId="term" [ngStyle]="{width: '100px'}" (click)="onSort('term')">Term
34 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('term')"></onos-icon>
35 </td>
36 <td colId="leader" [ngStyle]="{width: '200px'}" (click)="onSort('leader')">Leader
37 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('leader')"></onos-icon>
38 </td>
39 <td colId="members">Members </td>
40 </tr>
41 </table>
42 </div>
43 <div class="table-body">
44 <table onosTableResize id-prop="name">
45 <tr *ngIf="tableData.length === 0" class="no-data">
46 <td colspan="4">{{ annots.noRowsMsg }}</td>
47 </tr>
48 <tr *ngFor="let partition of tableData" [ngClass]="{selected: partition.name === selId}">
49 <td [ngStyle]="{width: '100px'}">{{partition.name}}</td>
50 <td [ngStyle]="{width: '100px'}">{{partition.term}}</td>
51 <td [ngStyle]="{width: '200px'}">{{partition.leader}}</td>
52 <td>{{partition.members}}</td>
53 </tr>
54 </table>
55 </div>
56 </div>
Sean Condon95fb5742019-04-02 12:16:55 +010057</div>