Update Web UI tables

- Condense table styling
- Default table size to 50
- Make all columns sortable
- Rename service portalIP to clusterIP
- Allow default descending table ordering
This commit is contained in:
BC Broussard
2015-06-30 17:34:48 -07:00
parent ef41ceb3e4
commit 288c1df4e4
18 changed files with 541 additions and 593 deletions

View File

@@ -24,7 +24,6 @@
$location.path(newValue);
}
});
$scope.subpages = [
{
category: 'dashboard',
@@ -69,6 +68,7 @@
customClass: '=customClass',
thumbs: '=',
count: '=',
reverse: '=',
doSelect: '&onSelect'
},
transclude: true,
@@ -87,7 +87,11 @@
$scope.content = orderBy($scope.content, predicate, reverse);
$scope.predicate = predicate;
};
$scope.order($scope.sortable[0], false);
var reverse = false;
if($scope.reverse)
reverse = $scope.reverse;
$scope.order($scope.sortable[0], reverse);
$scope.getNumber = function(num) { return new Array(num); };
$scope.goToPage = function(page) { $scope.currentPage = page; };
$scope.showMore = function() { return angular.isDefined($scope.moreClick);}