FIX: Back button broke on customize routes in admin

This commit is contained in:
Robin Ward 2014-09-29 11:54:14 -04:00
parent 4d1d5ca928
commit 5d91a4ef0c
3 changed files with 4 additions and 12 deletions

View File

@ -1,13 +1,5 @@
/**
Handles routes related to customization
@class AdminCustomizeIndexRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminCustomizeIndexRoute = Discourse.Route.extend({
redirect: function() {
this.transitionTo('adminCustomize.colors');
beforeModel: function() {
this.replaceWith('adminCustomize.colors');
}
});

View File

@ -19,7 +19,7 @@
<li>{{#link-to 'adminFlags'}}{{i18n admin.flags.title}}{{/link-to}}</li>
<li>{{#link-to 'adminLogs'}}{{i18n admin.logs.title}}{{/link-to}}</li>
{{#if currentUser.admin}}
<li>{{#link-to 'adminCustomize'}}{{i18n admin.customize.title}}{{/link-to}}</li>
<li>{{#link-to 'adminCustomize.colors'}}{{i18n admin.customize.title}}{{/link-to}}</li>
<li>{{#link-to 'admin.api'}}{{i18n admin.api.title}}{{/link-to}}</li>
<li>{{#link-to 'admin.backups'}}{{i18n admin.backups.title}}{{/link-to}}</li>
{{/if}}

View File

@ -4,7 +4,7 @@
<li>{{#link-to 'adminCustomize.colors'}}{{i18n admin.customize.colors.title}}{{/link-to}}</li>
<li>{{#link-to 'adminCustomize.css_html'}}{{i18n admin.customize.css_html.title}}{{/link-to}}</li>
<li>{{#link-to 'adminSiteText'}}{{i18n admin.site_text.title}}{{/link-to}}</li>
{{#if USERFIELD_FEATURE_COMPLETE}}
{{#if userFieldFeatureComplete}}
<li>{{#link-to 'adminUserFields'}}{{i18n admin.user_fields.title}}{{/link-to}}</li>
{{/if}}
</ul>