mirror of
https://ghfast.top/https://github.com/discourse/discourse-whos-online.git
synced 2026-07-16 11:37:09 +08:00
Replaced the use of deprecated Ember decorators like `@readOnly` and `@computed` with native getter methods to modernize the codebase. Updated the `#channel` property to utilize native class field syntax for improved clarity and maintainability. This change prepares the plugin for future updates and aligns it with best practices in modern Ember.js development. Existing functionality remains unaffected.
14 lines
324 B
Text
14 lines
324 B
Text
import avatar from "discourse/helpers/avatar";
|
|
|
|
const WhosOnlineAvatar = <template>
|
|
<a data-user-card={{@user.username}} href={{@user.path}}>
|
|
{{avatar
|
|
@user
|
|
avatarTemplatePath="avatar_template"
|
|
title=@user.username
|
|
imageSize="small"
|
|
}}
|
|
</a>
|
|
</template>;
|
|
|
|
export default WhosOnlineAvatar;
|