admin cleanup interface

This commit is contained in:
Athou
2013-07-10 15:06:04 +02:00
parent c7d316e17b
commit be4b15be70
7 changed files with 55 additions and 67 deletions

View File

@@ -1213,9 +1213,11 @@ module.controller('ManageDuplicateFeedsCtrl', [
$scope.limit = 10;
$scope.page = 0;
$scope.minCount = 1;
$scope.mode = 'NORMALIZED_URL';
$scope.mergeData = {};
$scope.refreshData = function() {
AdminCleanupService.findDuplicateFeeds({
mode: $scope.mode,
limit : $scope.limit,
page : $scope.page,
minCount: $scope.minCount
@@ -1342,6 +1344,9 @@ function($scope, $location, $state, AdminSettingsService) {
$scope.toUsers = function() {
$state.transitionTo('admin.userlist');
};
$scope.toCleanup = function() {
$state.transitionTo('admin.duplicate_feeds');
};
}]);
module.controller('HelpController', [ '$scope', 'CategoryService',

View File

@@ -92,7 +92,7 @@ app.config([ '$routeProvider', '$stateProvider', '$urlRouterProvider', '$httpPro
controller : 'ManageUserCtrl'
});
$stateProvider.state('admin.duplicate_feeds', {
url : '/feeds/duplicates/',
url : '/feeds/duplicates',
templateUrl : 'templates/admin.duplicate_feeds.html',
controller : 'ManageDuplicateFeedsCtrl'
});