diff --git a/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.hbs deleted file mode 100644 index 5fe7e19bd44..00000000000 --- a/app/assets/javascripts/discourse/app/components/user-nav/preferences-nav.hbs +++ /dev/null @@ -1,95 +0,0 @@ - - {{d-icon "user"}} - {{i18n "user.preferences_nav.account"}} - - - - {{d-icon "lock"}} - {{i18n "user.preferences_nav.security"}} - - - - {{d-icon "user"}} - {{i18n "user.preferences_nav.profile"}} - - - - {{d-icon "envelope"}} - {{i18n "user.preferences_nav.emails"}} - - - - {{d-icon "bell"}} - {{i18n "user.preferences_nav.notifications"}} - - -{{#if @model.can_change_tracking_preferences}} - - {{d-icon "plus"}} - {{i18n "user.preferences_nav.tracking"}} - -{{/if}} - - - {{d-icon "users"}} - {{i18n "user.preferences_nav.users"}} - - - - {{d-icon "desktop"}} - {{i18n "user.preferences_nav.interface"}} - - -{{#if (not (eq @siteSettings.navigation_menu "legacy"))}} - - {{d-icon "bars"}} - {{i18n "user.preferences_nav.sidebar"}} - -{{/if}} - - - \ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/templates/preferences.hbs b/app/assets/javascripts/discourse/app/templates/preferences.hbs index 843a5730d86..35952ce4157 100644 --- a/app/assets/javascripts/discourse/app/templates/preferences.hbs +++ b/app/assets/javascripts/discourse/app/templates/preferences.hbs @@ -1,110 +1,104 @@ -{{#if this.currentUser.redesigned_user_page_nav_enabled}} - -
- - - -
-{{else}} - - + +
+ + - - - - - - {{#if this.model.can_change_tracking_preferences}} - - {{/if}} - - {{#if - (and - this.model.can_change_tracking_preferences - this.siteSettings.tagging_enabled - ) - }} - - {{/if}} - + {{d-icon "user"}} + {{i18n "user.preferences_nav.account"}} + - {{#if (not (eq this.siteSettings.navigation_menu "legacy"))}} - - {{/if}} + + {{d-icon "lock"}} + {{i18n "user.preferences_nav.security"}} + - - - + + {{d-icon "user"}} + {{i18n "user.preferences_nav.profile"}} + - {{#if this.model.userApiKeys}} - - {{/if}} + + {{d-icon "envelope"}} + {{i18n "user.preferences_nav.emails"}} + - - - - - -{{/if}} + + {{d-icon "bell"}} + {{i18n "user.preferences_nav.notifications"}} + + + {{#if this.model.can_change_tracking_preferences}} + + {{d-icon "plus"}} + {{i18n "user.preferences_nav.tracking"}} + + {{/if}} + + + {{d-icon "users"}} + {{i18n "user.preferences_nav.users"}} + + + + {{d-icon "desktop"}} + {{i18n "user.preferences_nav.interface"}} + + + {{#if (not (eq this.siteSettings.navigation_menu "legacy"))}} + + {{d-icon "bars"}} + {{i18n "user.preferences_nav.sidebar"}} + + {{/if}} + + + + +
diff --git a/app/assets/javascripts/discourse/app/templates/preferences/security.hbs b/app/assets/javascripts/discourse/app/templates/preferences/security.hbs index d565fe5705e..e911c54154a 100644 --- a/app/assets/javascripts/discourse/app/templates/preferences/security.hbs +++ b/app/assets/javascripts/discourse/app/templates/preferences/security.hbs @@ -100,9 +100,7 @@ {{/if}} -{{#if this.currentUser.redesigned_user_page_nav_enabled}} - -{{/if}} +