Skip to content

Commit

Permalink
Use user card in members list
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntimeX committed Jan 9, 2024
1 parent 223f50b commit 01735bf
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions com.woltlab.wcf/templates/membersList.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@
<button type="button" class="button small jsStaticDialog" data-dialog-id="membersListSortFilter">{icon name='filter'} {lang}wcf.global.filter{/lang}</button>
</div>
</div>
<ol class="containerList userList">

<div class="userCardList">
{foreach from=$objects item=user}
{include file='userListItem'}
{include file='userCard'}
{/foreach}
</ol>
</div>
</div>

<div id="membersListSortFilter" class="jsStaticDialogContent" data-title="{lang}wcf.user.members.filter{/lang}">
Expand Down Expand Up @@ -136,15 +137,6 @@
</footer>

<script data-relocate="true">
$(function() {
WCF.Language.addObject({
'wcf.user.button.follow': '{jslang}wcf.user.button.follow{/jslang}',
'wcf.user.button.unfollow': '{jslang}wcf.user.button.unfollow{/jslang}',
});
new WCF.User.Action.Follow($('.userList > li'));
});
require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
new UiUserSearchInput(document.getElementById('searchUsername'), {
callbackSelect(item) {
Expand Down

0 comments on commit 01735bf

Please sign in to comment.