mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: Poll: Clickable, hoverable avatars (#28121)
- Add titles and User Card functionality to voter avatars
This commit is contained in:
parent
b29f49be97
commit
647294ad7b
|
@ -36,9 +36,15 @@ export default class PollVotersComponent extends Component {
|
|||
{{else}}
|
||||
<span class="rank">{{rank.rank}}</span>
|
||||
{{/if}}
|
||||
{{#each rank.voters as |user|}}
|
||||
{{#each rank.voters as |voter|}}
|
||||
<li>
|
||||
{{avatar user.user.avatar_template "tiny"}}
|
||||
<a data-user-card={{voter.user.username}}>{{avatar
|
||||
voter.user.avatar_template
|
||||
"tiny"
|
||||
usernamePath=voter.user.username
|
||||
namePath=voter.user.name
|
||||
title=voter.user.username
|
||||
}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
|
|
@ -18,7 +18,13 @@ export default class PollVotersComponent extends Component {
|
|||
{{else}}
|
||||
{{#each @voters as |user|}}
|
||||
<li>
|
||||
{{avatar user.avatar_template "tiny"}}
|
||||
<a data-user-card={{user.username}}>{{avatar
|
||||
user.avatar_template
|
||||
"tiny"
|
||||
usernamePath=user.username
|
||||
namePath=user.name
|
||||
title=user.username
|
||||
}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user