-
{{bound-avatar user "huge"}}
+ {{#if user.profile_hidden}}
+
{{bound-avatar user "huge"}}
+ {{else}}
+
{{bound-avatar user "huge"}}
+ {{/if}}
{{#if user.primary_group_name}}
{{avatar-flair
flairURL=user.primary_group_flair_url
@@ -16,10 +20,17 @@
{{plugin-outlet name="user-card-after-username" args=(hash user=user showUser=(action "showUser" user)) tagName=''}}
{{#unless nameFirst}}
@@ -82,6 +93,14 @@
tagName=""}}
+ {{#if user.profile_hidden}}
+
+
+ {{i18n "user.profile_hidden"}}
+
+
+ {{/if}}
+
{{#if isSuspendedOrHasBio}}
{{#if user.suspend_reason}}
@@ -126,7 +145,7 @@
{{/if}}
- {{#if user}}
+ {{#if user.time_read}}
{{#unless user.profile_hidden}}
@@ -202,4 +221,4 @@
{{/if}}
-{{/if}}
+{{/if}}
\ No newline at end of file
diff --git a/app/assets/stylesheets/common/components/user-card.scss b/app/assets/stylesheets/common/components/user-card.scss
index 27f5226a2c5..49af4a792ab 100644
--- a/app/assets/stylesheets/common/components/user-card.scss
+++ b/app/assets/stylesheets/common/components/user-card.scss
@@ -136,6 +136,10 @@ $avatar_margin: -50px; // negative margin makes avatars extend above cards
font-weight: bold;
}
}
+ .profile-hidden {
+ font-size: $font-up-1;
+ margin-top: 0.5em;
+ }
}
// location and website
.third-row {