diff options
| author | Finn Schneider <schneider@data-quest.de> | 2025-10-22 13:52:36 +0200 |
|---|---|---|
| committer | Finn Schneider <schneider@data-quest.de> | 2025-10-22 13:52:36 +0200 |
| commit | 1e444076fb43b4494f2089cce628fec7daccbbca (patch) | |
| tree | 99713a1cfc08b1d89867c4afb8b9ffb38b9f7a60 /app/views/files/_fileref_tr.php | |
| parent | 168af82be0d5b0e276a03cdf6e9193b23b0ba864 (diff) | |
avatardropdown php
Diffstat (limited to 'app/views/files/_fileref_tr.php')
| -rw-r--r-- | app/views/files/_fileref_tr.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/files/_fileref_tr.php b/app/views/files/_fileref_tr.php index a7c1156..c1031bf 100644 --- a/app/views/files/_fileref_tr.php +++ b/app/views/files/_fileref_tr.php @@ -58,10 +58,8 @@ if ($file->isDownloadable($GLOBALS['user']->id)) { <? endif ?> <? $author_name = $file->getUserName() ?> <td data-sort-value="<?= htmlReady($author_name) ?>" class="responsive-hidden"> - <? if ($file->getUser() && $file->getUser()->id !== $GLOBALS['user']->id) : ?> - <a href="<?= URLHelper::getLink('dispatch.php/profile?username=' . $file->getUser()->username) ?>"> - <?= htmlReady($author_name) ?> - </a> + <? if ($file->getUser()) : ?> + <?= Avatar::getAvatarDropdownHTML(User::find($file->getUser()->id), true) ?> <? else: ?> <?= htmlReady($author_name) ?> <? endif; ?> |
