From 758de8167bb79712fda01af0b35c2699c147b09e Mon Sep 17 00:00:00 2001 From: Amanda Alves Branquinho Date: Tue, 5 Nov 2024 14:03:20 -0300 Subject: [PATCH] DEV: Add outlet wrapper for user card information replacement (#29523) * DEV: Add outlet wrapper for user card information replacement * Fix format issues * Fix format issues --- .../app/components/user-card-contents.hbs | 203 ++++++++++-------- 1 file changed, 110 insertions(+), 93 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/user-card-contents.hbs b/app/assets/javascripts/discourse/app/components/user-card-contents.hbs index 80d0c7c5818..8ac6fa2ae50 100644 --- a/app/assets/javascripts/discourse/app/components/user-card-contents.hbs +++ b/app/assets/javascripts/discourse/app/components/user-card-contents.hbs @@ -27,56 +27,48 @@ {{else}}
- -
-
+ + +
+
+ {{#if this.contentHidden}} {{if this.nameFirst @@ -84,45 +76,65 @@ (format-username this.user.username) }} - {{user-status this.user currentUser=this.currentUser}} - - {{/if}} -
- - {{#if this.nameFirst}} -
{{this.user.username}}
- {{else}} - {{#if this.user.name}} -
{{this.user.name}}
- {{/if}} - {{/if}} - {{#if this.user.title}} -
{{this.user.title}}
- {{/if}} - {{#if this.user.staged}} -
{{i18n "user.staged"}}
- {{/if}} - {{#if this.hasStatus}} -
- {{html-safe this.userStatusEmoji}} - - {{this.user.status.description}} - - {{format-date this.user.status.ends_at format="tiny"}} + {{else}} + + {{/if}}
- {{/if}} -
+ {{#if this.nameFirst}} +
{{this.user.username}}
+ {{else}} + {{#if this.user.name}} +
{{this.user.name}}
+ {{/if}} + {{/if}} + {{#if this.user.title}} +
{{this.user.title}}
+ {{/if}} + {{#if this.user.staged}} +
{{i18n "user.staged"}}
+ {{/if}} + {{#if this.hasStatus}} +
+ {{html-safe this.userStatusEmoji}} + + {{this.user.status.description}} + + {{format-date this.user.status.ends_at format="tiny"}} +
+ {{/if}} +
+ +
-
+
    {{#if this.user.can_send_private_message_to_user}}
  • @@ -378,20 +390,25 @@ {{#if this.showBadges}}
    - {{#if this.user.featured_user_badges}} -
    - {{#each this.user.featured_user_badges as |ub|}} - - {{/each}} - {{#if this.showMoreBadges}} - - - {{i18n "badges.more_badges" count=this.moreBadgesCount}} - - - {{/if}} -
    - {{/if}} + + {{#if this.user.featured_user_badges}} +
    + {{#each this.user.featured_user_badges as |ub|}} + + {{/each}} + {{#if this.showMoreBadges}} + + + {{i18n "badges.more_badges" count=this.moreBadgesCount}} + + + {{/if}} +
    + {{/if}} +
    {{/if}} {{/if}}