Latest UI changes

This commit is contained in:
chouseknecht
2013-10-08 12:46:14 -04:00
parent 9325dbc846
commit 8955dbf594
6 changed files with 61 additions and 9 deletions

View File

@@ -39,9 +39,16 @@ function InventoriesList ($scope, $rootScope, $location, $log, $routeParams, Res
if (scope.inventories[i].hosts_with_active_failures > 0) {
scope.inventories[i].active_failures_params = "/?has_active_failures=true";
}
//if (scope.inventories[i].hosts_with_active_failures < 99) {
// scope.inventories[i].hosts_with_active_failures = ('00' + scope.inventories[i].hosts_with_active_failures).substr(-2);
//}
if (scope.inventories[i].has_inventory_sources) {
//scope.inventories[i].inventory_source = 'external';
scope.inventories[i].has_inventory_tip = 'Has one or more external sources. Click to view details.';
scope.inventories[i].has_inventory_link = '/#/inventories/' + scope.inventories[i].id + '/groups';
}
else {
//scope.inventories[i].inventory_source = 'manual';
scope.inventories[i].has_inventory_tip = 'Has no external sources. Click to view details';
scope.inventories[i].has_inventory_link = '/#/inventories/' + scope.inventories[i].id + '/groups';
}
}
});