FIX: Don't show empty user stats in the card when profile is hidden
This commit is contained in:
parent
43a7b08a48
commit
2178f7768f
|
@ -116,6 +116,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if user}}
|
{{#if user}}
|
||||||
|
{{#unless user.profile_hidden}}
|
||||||
<div class="metadata">
|
<div class="metadata">
|
||||||
{{#if user.last_posted_at}}
|
{{#if user.last_posted_at}}
|
||||||
<h3><span class='desc'>{{i18n 'last_post'}}</span> {{format-date user.last_posted_at leaveAgo="true"}}</h3>
|
<h3><span class='desc'>{{i18n 'last_post'}}</span> {{format-date user.last_posted_at leaveAgo="true"}}</h3>
|
||||||
|
@ -140,6 +141,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{plugin-outlet name="user-card-metadata" args=(hash user=user)}}
|
{{plugin-outlet name="user-card-metadata" args=(hash user=user)}}
|
||||||
</div>
|
</div>
|
||||||
|
{{/unless}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if publicUserFields}}
|
{{#if publicUserFields}}
|
||||||
|
|
Loading…
Reference in New Issue