Updated to support domain counts
This commit is contained in:
parent
860580c7c8
commit
5dae8b1f9e
|
@ -66,6 +66,7 @@ app.controller('serverController', function ($scope, $http) {
|
||||||
$scope.servers = [];
|
$scope.servers = [];
|
||||||
$scope.servers_search = "";
|
$scope.servers_search = "";
|
||||||
$scope.servers_trigger_details = [];
|
$scope.servers_trigger_details = [];
|
||||||
|
$scope.filtered
|
||||||
|
|
||||||
var api = '/api/com.daplie.rvpn/servers'
|
var api = '/api/com.daplie.rvpn/servers'
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
<td>
|
<td>
|
||||||
{{ s.source_address }}
|
{{ s.source_address }}
|
||||||
<div ng-hide="checkDetail(s.server_id)">
|
<div ng-hide="checkDetail(s.server_id)">
|
||||||
|
domains({{ s.domains.length}})
|
||||||
<div ng-repeat="d in s.domains | orderBy:'domain_name'">
|
<div ng-repeat="d in s.domains | orderBy:'domain_name'">
|
||||||
   {{ d.domain_name }}
|
   {{ d.domain_name }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,8 +46,9 @@
|
||||||
<td>
|
<td>
|
||||||
{{ s.bytes_in | bytes }}/{{ s.bytes_out | bytes }}
|
{{ s.bytes_in | bytes }}/{{ s.bytes_out | bytes }}
|
||||||
<div ng-hide="checkDetail(s.server_id)">
|
<div ng-hide="checkDetail(s.server_id)">
|
||||||
|
domains({{ s.domains.length}})
|
||||||
<div ng-repeat="d in s.domains | orderBy:'domain_name'">
|
<div ng-repeat="d in s.domains | orderBy:'domain_name'">
|
||||||
{{ d.bytes_in | bytes }}/{{ d.bytes_out | bytes }}
|
   {{ d.bytes_in | bytes }}/{{ d.bytes_out | bytes }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue