Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 1 | <!-- Host partial HTML --> |
| 2 | <div id="ov-host"> |
Bri Prebilic Cole | 4506938 | 2015-04-14 15:21:38 -0700 | [diff] [blame] | 3 | <div class="tabular-header"> |
| 4 | <h2>Hosts ({{ctrl.tableData.length}} total)</h2> |
| 5 | </div> |
| 6 | |
Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 7 | <table class="summary-list" |
| 8 | onos-fixed-header |
| 9 | onos-sortable-header |
Bri Prebilic Cole | 72eb6db | 2015-03-30 16:58:53 -0700 | [diff] [blame] | 10 | sort-callback="sortCallback(requestParams)"> |
Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 11 | <thead> |
| 12 | <tr> |
Thomas Vachuska | 58eded6 | 2015-03-31 12:04:03 -0700 | [diff] [blame] | 13 | <th colId="type" class="table-icon" sortable></th> |
Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 14 | <th colId="id" sortable>Host ID </th> |
Bri Prebilic Cole | 19a32dd | 2015-03-26 18:00:03 -0700 | [diff] [blame] | 15 | <th colId="mac" sortable>MAC Address </th> |
| 16 | <th colId="vlan" sortable>VLAN ID </th> |
| 17 | <th colId="ips" sortable>IP Addresses </th> |
| 18 | <th colId="location" sortable>Location </th> |
Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 19 | </tr> |
| 20 | </thead> |
| 21 | |
| 22 | <tbody> |
Simon Hunt | 0c2c4c5 | 2015-04-02 17:42:45 -0700 | [diff] [blame] | 23 | <tr ng-hide="ctrl.tableData.length"> |
| 24 | <td class="nodata" colspan="6"> |
| 25 | No Hosts found |
| 26 | </td> |
| 27 | </tr> |
| 28 | |
| 29 | <tr ng-repeat="host in ctrl.tableData" |
| 30 | ng-repeat-done> |
| 31 | <td class="table-icon"> |
| 32 | <div icon icon-id="{{host._iconid_type}}"></div> |
| 33 | </td> |
| 34 | <td>{{host.id}}</td> |
| 35 | <td>{{host.mac}}</td> |
| 36 | <td>{{host.vlan}}</td> |
| 37 | <td>{{host.ips}}</td> |
| 38 | <td>{{host.location}}</td> |
| 39 | </tr> |
Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 40 | </tbody> |
| 41 | </table> |
Thomas Vachuska | e586b79 | 2015-03-26 13:59:38 -0700 | [diff] [blame] | 42 | </div> |