diff --git a/app/assets/javascripts/admin/routes/admin_customize_route.js b/app/assets/javascripts/admin/routes/admin_customize_route.js index bb07dd524ce..5b6d8531707 100644 --- a/app/assets/javascripts/admin/routes/admin_customize_route.js +++ b/app/assets/javascripts/admin/routes/admin_customize_route.js @@ -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'); } }); diff --git a/app/assets/javascripts/admin/templates/admin.hbs b/app/assets/javascripts/admin/templates/admin.hbs index 823f047da25..0c85e3e0795 100644 --- a/app/assets/javascripts/admin/templates/admin.hbs +++ b/app/assets/javascripts/admin/templates/admin.hbs @@ -19,7 +19,7 @@
  • {{#link-to 'adminFlags'}}{{i18n admin.flags.title}}{{/link-to}}
  • {{#link-to 'adminLogs'}}{{i18n admin.logs.title}}{{/link-to}}
  • {{#if currentUser.admin}} -
  • {{#link-to 'adminCustomize'}}{{i18n admin.customize.title}}{{/link-to}}
  • +
  • {{#link-to 'adminCustomize.colors'}}{{i18n admin.customize.title}}{{/link-to}}
  • {{#link-to 'admin.api'}}{{i18n admin.api.title}}{{/link-to}}
  • {{#link-to 'admin.backups'}}{{i18n admin.backups.title}}{{/link-to}}
  • {{/if}} diff --git a/app/assets/javascripts/admin/templates/customize.hbs b/app/assets/javascripts/admin/templates/customize.hbs index 27c5b3ad7d3..190b852cd71 100644 --- a/app/assets/javascripts/admin/templates/customize.hbs +++ b/app/assets/javascripts/admin/templates/customize.hbs @@ -4,7 +4,7 @@
  • {{#link-to 'adminCustomize.colors'}}{{i18n admin.customize.colors.title}}{{/link-to}}
  • {{#link-to 'adminCustomize.css_html'}}{{i18n admin.customize.css_html.title}}{{/link-to}}
  • {{#link-to 'adminSiteText'}}{{i18n admin.site_text.title}}{{/link-to}}
  • - {{#if USERFIELD_FEATURE_COMPLETE}} + {{#if userFieldFeatureComplete}}
  • {{#link-to 'adminUserFields'}}{{i18n admin.user_fields.title}}{{/link-to}}
  • {{/if}}