FIX: Poll: Clickable, hoverable avatars (#28121)

- Add titles and User Card functionality to voter avatars
This commit is contained in:
Robert 2024-07-30 10:45:27 +01:00 committed by GitHub
parent b29f49be97
commit 647294ad7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 3 deletions

View File

@ -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>

View File

@ -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}}