admin interface

This commit is contained in:
Athou
2013-03-29 17:17:36 +01:00
parent 70739a22af
commit 578583da59
11 changed files with 3730 additions and 10 deletions

View File

@@ -140,7 +140,7 @@ module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
}, function(data) {
for ( var i = 0; i < data.entries.length; i++) {
$scope.entries.push(data.entries[i]);
}
};
$scope.name = data.name;
$scope.busy = false;
$scope.hasMore = data.entries.length == limit
@@ -239,7 +239,7 @@ module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
openPreviousEntry(e);
})
});
$scope.$on('reload', function(event, args) {
$scope.name = null;
$scope.entries = [];
@@ -247,4 +247,11 @@ module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
$scope.hasMore = true;
$scope.loadMoreEntries();
});
});
module.controller('ManageUsersCtrl', function($scope, AdminUsersService) {
$scope.users = AdminUsersService.get();
$scope.gridOptions = {
data : 'users'
};
});