Skip to content

Commit

Permalink
Fix user image alt attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Oct 5, 2024
1 parent 7a3939e commit ffc6a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/views/users/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<?php foreach ($users as $user) : ?>
<div class="users-item">
<div class="users-item-cell user-username truncate">
<img class="user-image mr-4" src="<?= $user->image()->uri() ?>" alt="<? $panel->user()->username() ?>">
<img class="user-image mr-4" src="<?= $user->image()->uri() ?>" alt="<?= $this->escapeAttr($panel->user()->username()) ?>">
<a href="<?= $panel->uri('/users/' . $user->username() . '/profile/') ?>"><?= $this->escape($user->username()) ?></a>
</div>
<div class="users-item-cell user-fullname truncate show-from-sm"><?= $this->escape($user->fullname()) ?></div>
Expand Down

0 comments on commit ffc6a4d

Please sign in to comment.