mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
No implicit this codemod (#17235)
* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
{{#if shouldDisplay}}
|
||||
{{#if this.shouldDisplay}}
|
||||
<div class="presence-users">
|
||||
<div class="presence-avatars">
|
||||
{{#each presenceUsers as |user|}}
|
||||
{{#each this.presenceUsers as |user|}}
|
||||
{{avatar user imageSize="small"}}
|
||||
{{/each}}
|
||||
</div>
|
||||
<span class="presence-text">
|
||||
<span class="description">
|
||||
{{#if isReply ~}}
|
||||
{{i18n "presence.replying" count=presenceUsers.length}}
|
||||
{{#if this.isReply ~}}
|
||||
{{i18n "presence.replying" count=this.presenceUsers.length}}
|
||||
{{~else~}}
|
||||
{{i18n "presence.editing" count=presenceUsers.length}}
|
||||
{{i18n "presence.editing" count=this.presenceUsers.length}}
|
||||
{{~/if}}
|
||||
{{~""~}}
|
||||
</span>
|
||||
|
@ -1,14 +1,14 @@
|
||||
{{#if shouldDisplay}}
|
||||
{{#if this.shouldDisplay}}
|
||||
<div class="presence-users">
|
||||
<div class="presence-avatars">
|
||||
{{#each users as |user|}}
|
||||
{{#each this.users as |user|}}
|
||||
<UserLink @user={{user}}>
|
||||
{{avatar user imageSize="small"}}
|
||||
</UserLink>
|
||||
{{/each}}
|
||||
</div>
|
||||
<span class="presence-text">
|
||||
<span class="description">{{i18n "presence.replying_to_topic" count=users.length}}</span>{{!-- (using comment to stop whitespace)
|
||||
<span class="description">{{i18n "presence.replying_to_topic" count=this.users.length}}</span>{{!-- (using comment to stop whitespace)
|
||||
--}}<span class="wave"><span class="dot">.</span><span class="dot">.</span><span class="dot">.</span></span>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -1 +1 @@
|
||||
<ComposerPresenceDisplay @model={{model}} />
|
||||
<ComposerPresenceDisplay @model={{this.model}} />
|
||||
|
@ -1,2 +1,2 @@
|
||||
{{!-- Note: the topic-above-footer-buttons outlet is only rendered for logged-in users --}}
|
||||
<TopicPresenceDisplay @topic={{model}} />
|
||||
<TopicPresenceDisplay @topic={{this.model}} />
|
||||
|
Reference in New Issue
Block a user