From: Marcel Werk Date: Thu, 28 Apr 2022 13:47:22 +0000 (+0200) Subject: Use content interactions button in user profiles (management menu) X-Git-Tag: 5.5.0_Alpha_5~2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5af681fcfe063dfdca467094a0e303b72bc4e12e;p=GitHub%2FWoltLab%2FWCF.git Use content interactions button in user profiles (management menu) --- diff --git a/com.woltlab.wcf/templates/user.tpl b/com.woltlab.wcf/templates/user.tpl index 61971cab20..75af321c6d 100644 --- a/com.woltlab.wcf/templates/user.tpl +++ b/com.woltlab.wcf/templates/user.tpl @@ -264,27 +264,6 @@ {/hascontent} - {hascontent} - - {/hascontent} - {event name='contentHeaderNavigation'} @@ -299,6 +278,20 @@ {/capture} {assign var='__menuSearch' value=$__menuSearch|trim} +{capture assign='__menuManagement'} + {event name='menuManagement'} + {if $isAccessible && $__wcf->user->userID != $user->userID && ($__wcf->session->getPermission('admin.user.canBanUser') || $__wcf->session->getPermission('admin.user.canDisableAvatar') || $__wcf->session->getPermission('admin.user.canDisableSignature') || $__wcf->session->getPermission('admin.user.canEnableUser') || ($__wcf->session->getPermission('admin.general.canUseAcp') && $__wcf->session->getPermission('admin.user.canEditUser')){event name='moderationDropdownPermissions'})} + {if $__wcf->session->getPermission('admin.user.canBanUser')}
  • {lang}wcf.user.{if $user->banned}un{/if}ban{/lang}
  • {/if} + {if $__wcf->session->getPermission('admin.user.canDisableAvatar')}
  • {lang}wcf.user.{if $user->disableAvatar}enable{else}disable{/if}Avatar{/lang}
  • {/if} + {if $__wcf->session->getPermission('admin.user.canDisableSignature')}
  • {lang}wcf.user.{if $user->disableSignature}enable{else}disable{/if}Signature{/lang}
  • {/if} + {if $__wcf->session->getPermission('admin.user.canDisableCoverPhoto')}
  • {lang}wcf.user.{if $user->disableCoverPhoto}enable{else}disable{/if}CoverPhoto{/lang}
  • {/if} + {if $__wcf->session->getPermission('admin.user.canEnableUser')}
  • {lang}wcf.acp.user.{if $user->pendingActivation()}enable{else}disable{/if}{/lang}
  • {/if} + + {if $__wcf->session->getPermission('admin.general.canUseAcp') && $__wcf->session->getPermission('admin.user.canEditUser')}
  • {lang}wcf.user.edit{/lang}
  • {/if} + {/if} +{/capture} +{assign var='__menuManagement' value=$__menuManagement|trim} + {capture assign='contentInteractionButtons'} {if $__menuSearch} {/if} + {if $__menuManagement} + + {/if} {/capture} {capture assign='contentInteractionDropdownItems'}