From 526aadfec3606b37e923f654c90d552aa275696c Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 8 Nov 2024 13:50:12 +0100 Subject: [PATCH] Add an extra button next to *Edit cover photo* for avatar management --- com.woltlab.wcf/templates/user.tpl | 35 +++++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/com.woltlab.wcf/templates/user.tpl b/com.woltlab.wcf/templates/user.tpl index eb8a67ae4b..c0f7ecc050 100644 --- a/com.woltlab.wcf/templates/user.tpl +++ b/com.woltlab.wcf/templates/user.tpl @@ -112,23 +112,32 @@ {/if} {/if}>
- {if ($user->userID == $__wcf->user->userID || $user->canEdit()) && ($__wcf->getSession()->getPermission('user.profile.coverPhoto.canUploadCoverPhoto') || $user->coverPhotoHash)} - - {/if} +
{if $user->canEditAvatar()} - + {else} {@$user->getAvatar()->getImageTag(128)} {/if} -- 2.20.1