UX: Extend user hyperlink in staff action logs (#15293)

The avatar hyperlink redirected to admin user page and the username
hyperlink applied a filter. Now both hyperlinks redirect to admin user
page.
This commit is contained in:
Bianca Nenciu 2021-12-14 17:14:18 +02:00 committed by GitHub
parent 175ced5096
commit ce7c821aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -62,8 +62,10 @@
<td class="staff-users">
<div class="staff-user">
{{#if item.acting_user}}
{{#link-to "adminUser" item.acting_user}}{{avatar item.acting_user imageSize="tiny"}}{{/link-to}}
<a href {{action "filterByStaffUser" item.acting_user}}>{{item.acting_user.username}}</a>
{{#link-to "adminUser" item.acting_user}}
{{avatar item.acting_user imageSize="tiny"}}
{{item.acting_user.username}}
{{/link-to}}
{{else}}
<span class="deleted-user" title={{i18n "admin.user.deleted"}}>
{{d-icon "far-trash-alt"}}