diff --git a/app/assets/javascripts/admin/routes/admin_dashboard_route.js b/app/assets/javascripts/admin/routes/admin_dashboard_route.js index 3698742ff95..721a1e66092 100644 --- a/app/assets/javascripts/admin/routes/admin_dashboard_route.js +++ b/app/assets/javascripts/admin/routes/admin_dashboard_route.js @@ -29,6 +29,7 @@ Discourse.AdminDashboardRoute = Discourse.Route.extend({ }); c.set('admins', d.admins); c.set('moderators', d.moderators); + c.set('blocked', d.blocked); c.set('top_referrers', d.top_referrers); c.set('top_traffic_sources', d.top_traffic_sources); c.set('top_referred_topics', d.top_referred_topics); diff --git a/app/assets/javascripts/admin/routes/admin_routes.js b/app/assets/javascripts/admin/routes/admin_routes.js index 0bff71adbc5..53a0af5eb3a 100644 --- a/app/assets/javascripts/admin/routes/admin_routes.js +++ b/app/assets/javascripts/admin/routes/admin_routes.js @@ -35,6 +35,7 @@ Discourse.Route.buildRoutes(function() { 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' }); diff --git a/app/assets/javascripts/admin/routes/admin_users_list_routes.js b/app/assets/javascripts/admin/routes/admin_users_list_routes.js index de5d8f8954f..e9e9341bbe5 100644 --- a/app/assets/javascripts/admin/routes/admin_users_list_routes.js +++ b/app/assets/javascripts/admin/routes/admin_users_list_routes.js @@ -80,4 +80,18 @@ Discourse.AdminUsersListModeratorsRoute = Discourse.Route.extend({ setupController: function() { return this.controllerFor('adminUsersList').show('moderators'); } +}); + +/** + Handles the route that lists blocked users. + + @class AdminUsersListBlockedRoute + @extends Discourse.Route + @namespace Discourse + @module Discourse +**/ +Discourse.AdminUsersListBlockedRoute = Discourse.Route.extend({ + setupController: function() { + return this.controllerFor('adminUsersList').show('blocked'); + } }); \ No newline at end of file diff --git a/app/assets/javascripts/admin/templates/dashboard.js.handlebars b/app/assets/javascripts/admin/templates/dashboard.js.handlebars index 02b07be8dcc..955a80b7d4f 100644 --- a/app/assets/javascripts/admin/templates/dashboard.js.handlebars +++ b/app/assets/javascripts/admin/templates/dashboard.js.handlebars @@ -101,6 +101,8 @@ {{#linkTo 'adminUsersList.admins'}}{{admins}}{{/linkTo}} {{i18n admin.dashboard.moderators}} {{#linkTo 'adminUsersList.moderators'}}{{moderators}}{{/linkTo}} + {{i18n admin.dashboard.blocked}} + {{#linkTo 'adminUsersList.blocked'}}{{blocked}}{{/linkTo}}