From 5af681fcfe063dfdca467094a0e303b72bc4e12e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 28 Apr 2022 15:47:22 +0200 Subject: [PATCH] Use content interactions button in user profiles (management menu) --- com.woltlab.wcf/templates/user.tpl | 43 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 21 deletions(-) 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'} -- 2.20.1