Commit | Line | Data |
---|---|---|
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({ | |
e2e8c155 | 27 | 'wcf.user.button.follow': '{jslang}wcf.user.button.follow{/jslang}', |
e2e8c155 | 28 | 'wcf.user.button.unfollow': '{jslang}wcf.user.button.unfollow{/jslang}', |
320f4a6d MW |
29 | }); |
30 | ||
31 | new WCF.User.Action.Follow($('.jsGroupedUserList > li')); | |
320f4a6d | 32 | }); |
e2e8c155 | 33 | </script> |