mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Add blocked users count to dashboard
This commit is contained in:
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user