Merge remote-tracking branch 'refs/remotes/origin/3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / groupedUserList.tpl
CommitLineData
320f4a6d
MW
1{foreach from=$groupedUsers item=group}
2 {if $group}
95961bdf
MW
3 <section class="section sectionContainerList">
4 <h2 class="sectionTitle">{$group}</h2>
320f4a6d
MW
5 {/if}
6
7 {if $group|count}
95961bdf
MW
8 <ol class="containerList jsGroupedUserList">
9 {foreach from=$group item=user}
10 {include file='userListItem'}
11 {/foreach}
12 </ol>
320f4a6d 13 {else}
95961bdf
MW
14 <p>{$group->getNoUsersMessage()}</p>
15 {/if}
16
17 {if $group}
18 </section>
320f4a6d
MW
19 {/if}
20{/foreach}
21
b992269f 22<div class="paginationBottom jsPagination"></div>
320f4a6d 23
9543d9fe 24<script data-relocate="true">
320f4a6d
MW
25 $(function() {
26 WCF.Language.addObject({
27 'wcf.user.button.follow': '{lang}wcf.user.button.follow{/lang}',
28 'wcf.user.button.ignore': '{lang}wcf.user.button.ignore{/lang}',
29 'wcf.user.button.unfollow': '{lang}wcf.user.button.unfollow{/lang}',
30 'wcf.user.button.unignore': '{lang}wcf.user.button.unignore{/lang}'
31 });
32
33 new WCF.User.Action.Follow($('.jsGroupedUserList > li'));
34 new WCF.User.Action.Ignore($('.jsGroupedUserList > li'));
35 });
320f4a6d 36</script>