mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00

It's way more common to have presence enabled than disabled, so we should have been making it the default from start. This commit also changes the namespace of `<ChatUserAvatar />` into `<Chat::UserAvatar />` and refactors tests.
8 lines
267 B
Handlebars
8 lines
267 B
Handlebars
{{#if @user}}
|
|
<a href={{this.userPath}} data-user-card={{@user.username}}>
|
|
<Chat::UserAvatar @user={{@user}} @avatarSize="medium" />
|
|
</a>
|
|
<a href={{this.userPath}} data-user-card={{@user.username}}>
|
|
<ChatUserDisplayName @user={{@user}} />
|
|
</a>
|
|
{{/if}} |