Merge pull request #3092 from techAPJ/patch-1

FIX: users tab in admin panel doesn’t stay highlighted
This commit is contained in:
Robin Ward 2015-01-12 17:16:32 -05:00
commit da7c9e6447
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,5 @@
export default Discourse.Route.extend({
redirect: function() {
this.replaceWith('adminUsersList.show', 'active');
}
});

View File

@ -8,7 +8,7 @@
{{#if currentUser.admin}}
<li>{{#link-to 'adminSiteSettings'}}{{i18n 'admin.site_settings.title'}}{{/link-to}}</li>
{{/if}}
<li>{{#link-to 'adminUsersList.show' 'active'}}{{i18n 'admin.users.title'}}{{/link-to}}</li>
<li>{{#link-to 'adminUsersList'}}{{i18n 'admin.users.title'}}{{/link-to}}</li>
{{#if showBadges}}
<li>{{#link-to 'adminBadges.index'}}{{i18n 'admin.badges.title'}}{{/link-to}}</li>
{{/if}}
@ -34,4 +34,3 @@
</div>
</div>
</div>