From f6963a05c45fbfcea69fc7015443af214ed96134 Mon Sep 17 00:00:00 2001 From: Ryan Boland Date: Thu, 18 Jul 2013 23:26:04 -0400 Subject: [PATCH] fix graphical error --- .../javascripts/admin/routes/admin_flags_route.js | 14 ++++++++++++++ .../admin/routes/admin_users_list_routes.js | 5 ++++- .../admin/templates/admin.js.handlebars | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 app/assets/javascripts/admin/routes/admin_flags_route.js diff --git a/app/assets/javascripts/admin/routes/admin_flags_route.js b/app/assets/javascripts/admin/routes/admin_flags_route.js new file mode 100644 index 000000000..d03a1cbb4 --- /dev/null +++ b/app/assets/javascripts/admin/routes/admin_flags_route.js @@ -0,0 +1,14 @@ +/** + Handles routes related to viewing flags. + + @class AdminFlagsRoute + @extends Discourse.Route + @namespace Discourse + @module Discourse +**/ + +Discourse.AdminFlagsRoute = Discourse.Route.extend({ + redirect: function() { + this.transitionTo('adminFlags.active'); + } +}); 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 e31f6f427..2074756d6 100644 --- a/app/assets/javascripts/admin/routes/admin_users_list_routes.js +++ b/app/assets/javascripts/admin/routes/admin_users_list_routes.js @@ -9,6 +9,9 @@ Discourse.AdminUsersListRoute = Discourse.Route.extend({ renderTemplate: function() { this.render('admin/templates/users_list', {into: 'admin/templates/admin'}); + }, + redirect: function() { + this.transitionTo('adminUsersList.active'); } }); @@ -108,4 +111,4 @@ Discourse.AdminUsersListBannedRoute = Discourse.Route.extend({ setupController: function() { return this.controllerFor('adminUsersList').show('banned'); } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/templates/admin.js.handlebars b/app/assets/javascripts/admin/templates/admin.js.handlebars index 462337f8c..566a69885 100644 --- a/app/assets/javascripts/admin/templates/admin.js.handlebars +++ b/app/assets/javascripts/admin/templates/admin.js.handlebars @@ -8,10 +8,10 @@
  • {{#linkTo 'admin.site_settings'}}{{i18n admin.site_settings.title}}{{/linkTo}}
  • {{#linkTo 'adminSiteContents'}}{{i18n admin.site_content.title}}{{/linkTo}}
  • {{/if}} -
  • {{#linkTo 'adminUsersList.active'}}{{i18n admin.users.title}}{{/linkTo}}
  • +
  • {{#linkTo 'adminUsersList'}}{{i18n admin.users.title}}{{/linkTo}}
  • {{#linkTo 'admin.groups'}}{{i18n admin.groups.title}}{{/linkTo}}
  • {{#linkTo 'adminEmail'}}{{i18n admin.email.title}}{{/linkTo}}
  • -
  • {{#linkTo 'adminFlags.active'}}{{i18n admin.flags.title}}{{/linkTo}}
  • +
  • {{#linkTo 'adminFlags'}}{{i18n admin.flags.title}}{{/linkTo}}
  • {{#if currentUser.admin}}
  • {{#linkTo 'admin.customize'}}{{i18n admin.customize.title}}{{/linkTo}}
  • {{#linkTo 'admin.api'}}{{i18n admin.api.title}}{{/linkTo}}