Updated to support domain counts

This commit is contained in:
Henry Camacho 2017-03-18 14:45:12 -05:00
parent 860580c7c8
commit 5dae8b1f9e
2 changed files with 4 additions and 1 deletions

View File

@ -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'

View File

@ -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'">
&nbsp&nbsp&nbsp{{ d.domain_name }} &nbsp&nbsp&nbsp{{ 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 }} &nbsp&nbsp&nbsp{{ d.bytes_in | bytes }}/{{ d.bytes_out | bytes }}
</div> </div>
</div> </div>
</td> </td>