Add blocked users count to dashboard

This commit is contained in:
Neil Lalonde
2013-07-08 12:21:08 -04:00
parent cfc4dda9ff
commit 9b0f63627b
9 changed files with 47 additions and 27 deletions

View File

@ -34,18 +34,10 @@ Discourse.Route.buildRoutes(function() {
this.resource('adminUsers', { path: '/users' }, function() {
this.resource('adminUser', { path: '/:username' });
this.resource('adminUsersList', { path: '/list' }, function() {
this.route('active', { path: '/active' });
this.route('new', { path: '/new' });
this.route('pending', { path: '/pending' });
this.route('admins', { path: '/admins' });
this.route('moderators', { path: '/moderators' });
this.route('blocked', { path: '/blocked' });
// Trust Levels:
this.route('newuser', { path: '/newuser' });
this.route('basic', { path: '/basic' });
this.route('regular', { path: '/regular' });
this.route('leaders', { path: '/leaders' });
this.route('elders', { path: '/elders' });
_.each(['active', 'new', 'pending', 'admins', 'moderators', 'blocked', 'banned',
'newuser', 'basic', 'regular', 'leaders', 'elders'], function(x) {
this.route(x, { path: '/' + x });
}, this);
});
});