From 637b1211b5c06e32050ff138d68e92415e3279d6 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 5 Oct 2022 14:19:46 +0800 Subject: [PATCH] DEV: Convert experimental user page activity nav to horizontal nav (#18483) As usual, design is still in flux so no tests for now. Internal Ref: /t/67780/59 --- .../discourse/app/components/user-nav.hbs | 44 +++---------------- .../app/components/user-nav/messages-nav.hbs | 2 +- .../discourse/app/templates/user/activity.hbs | 40 ++++++++++++++++- .../app/templates/user/notifications.hbs | 2 +- 4 files changed, 46 insertions(+), 42 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/user-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav.hbs index 6988e134fa2..e5f45b102df 100644 --- a/app/assets/javascripts/discourse/app/components/user-nav.hbs +++ b/app/assets/javascripts/discourse/app/components/user-nav.hbs @@ -9,44 +9,12 @@ - - - <:submenu> - {{i18n "user.filters.all"}} - {{i18n "user_action_groups.4"}} - {{i18n "user_action_groups.5"}} - - {{#if @showRead}} - - {{i18n "user.read"}} - - {{/if}} - - {{#if @showDrafts}} - - {{this.draftLabel}} - - {{/if}} - - {{#if (gt @user.pending_posts_count 0)}} - - {{this.pendingLabel}} - - {{/if}} - - {{i18n "user_action_groups.1"}} - - {{#if @showBookmarks}} - {{i18n "user_action_groups.3"}} - {{/if}} - - - - +
  • + + {{d-icon "stream"}} + {{i18n "user.activity_stream"}} + +
  • {{/unless}} {{#if @showNotificationsTab}} diff --git a/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs index a35091d7a7d..e0744b6030f 100644 --- a/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs +++ b/app/assets/javascripts/discourse/app/components/user-nav/messages-nav.hbs @@ -88,7 +88,7 @@ {{/if}} {{/if}} - + {{#if this.site.desktopView}} diff --git a/app/assets/javascripts/discourse/app/templates/user/activity.hbs b/app/assets/javascripts/discourse/app/templates/user/activity.hbs index a115f1cf064..18a0971b365 100644 --- a/app/assets/javascripts/discourse/app/templates/user/activity.hbs +++ b/app/assets/javascripts/discourse/app/templates/user/activity.hbs @@ -1,4 +1,40 @@ -{{#unless this.currentUser.redesigned_user_page_nav_enabled}} +{{#if this.currentUser.redesigned_user_page_nav_enabled}} + + +
    + +
    +{{else}}