forked from Archives/Athou_commafeed
admin cleanup interface
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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'
|
||||
});
|
||||
|
||||
@@ -1,10 +1,21 @@
|
||||
<div class="row">
|
||||
|
||||
<div>
|
||||
Limit <input type="number" ng-model="limit" />
|
||||
Page <input type="number" ng-model="page" />
|
||||
Min. count <input type="number" ng-model="minCount" />
|
||||
<input type="button" class="btn" ng-click="refreshData()" value="Refresh" />
|
||||
<input type="button" class="btn" ng-click="autoMerge()" value="Auto merge selected" />
|
||||
</div>
|
||||
<div>
|
||||
Mode
|
||||
<select ng-model="mode">
|
||||
<option value="NORMALIZED_URL">Normalized URLs</option>
|
||||
<option value="LAST_CONTENT">Last content</option>
|
||||
<option value="PUSH_TOPIC">Pubsubhubbub topic URL</option>
|
||||
</select>
|
||||
<input type="button" class="btn" ng-click="refreshData()" value="Refresh" />
|
||||
<input type="button" class="btn" ng-click="autoMerge()" value="Auto merge selected" />
|
||||
</div>
|
||||
|
||||
<table class="table table-condensed table-hover" ui-if="counts">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
<small>
|
||||
<a ng-click="toUsers()" class="pointer">Manage users</a>
|
||||
</small>
|
||||
-
|
||||
<small>
|
||||
<a ng-click="toCleanup()" class="pointer">Cleanup feeds</a>
|
||||
</small>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user