blob: 29121c9f067becccdf898cf5914c3d84b5b98c8c [file] [log] [blame]
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -07001<!--
2 ~ Copyright 2015 Open Networking Laboratory
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
17<!-- Link partial HTML -->
18<div id="ov-link">
Bri Prebilic Cole45069382015-04-14 15:21:38 -070019 <div class="tabular-header">
20 <h2>Links ({{ctrl.tableData.length}} total)</h2>
Bri Prebilic Cole3d4d01c2015-04-30 13:48:36 -070021 <div class="ctrl-btns">
22 <div class="refresh active"
Bri Prebilic Cole43f17c02015-05-01 10:43:38 -070023 icon icon-size="36" icon-id="refresh"
Bri Prebilic Cole3d4d01c2015-04-30 13:48:36 -070024 ng-click="refresh()"></div>
25 </div>
Bri Prebilic Cole45069382015-04-14 15:21:38 -070026 </div>
27
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -070028 <table class="summary-list"
29 onos-fixed-header
30 onos-sortable-header
31 sort-callback="sortCallback(requestParams)">
32 <thead>
33 <tr>
Bri Prebilic Coleab582b82015-04-14 15:08:22 -070034 <th colId="_iconid_state" class="table-icon" sortable></th>
Thomas Vachuska583bc632015-04-14 10:10:57 -070035 <th colId="one" sortable>Port 1 </th>
36 <th colId="two" sortable>Port 2 </th>
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -070037 <th colId="type" sortable>Type </th>
Thomas Vachuska583bc632015-04-14 10:10:57 -070038 <th colId="direction" sortable>Direction </th>
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -070039 <th colId="durable" sortable>Durable </th>
40 </tr>
41 </thead>
42
43 <tbody>
44 <tr ng-hide="ctrl.tableData.length">
Thomas Vachuska583bc632015-04-14 10:10:57 -070045 <td class="nodata" colspan="6">
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -070046 No Links found
47 </td>
48 </tr>
49
50 <tr ng-repeat="link in ctrl.tableData"
51 ng-repeat-done>
Bri Prebilic Coleab582b82015-04-14 15:08:22 -070052 <td class="table-icon">
53 <div icon icon-id="{{link._iconid_state}}"></div>
54 </td>
Thomas Vachuska583bc632015-04-14 10:10:57 -070055 <td>{{link.one}}</td>
56 <td>{{link.two}}</td>
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -070057 <td>{{link.type}}</td>
Thomas Vachuska583bc632015-04-14 10:10:57 -070058 <td>{{link.direction}}</td>
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -070059 <td>{{link.durable}}</td>
60 </tr>
61 </tbody>
62 </table>
Bri Prebilic Cole9fb594a2015-04-14 09:15:54 -070063</div>