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