Merge branch 'next' of github.com:WoltLab/WCF into next
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / team.tpl
1 {capture assign='pageTitle'}{lang}wcf.user.team{/lang}{/capture}
2
3 {capture assign='contentTitle'}{lang}wcf.user.team{/lang}{/capture}
4
5 {capture assign='headContent'}
6 <link rel="canonical" href="{link controller='Team'}{/link}" />
7 {/capture}
8
9 {include file='header'}
10
11 {foreach from=$objects->getTeams() item=team}
12 <section class="section sectionContainerList">
13 <header class="sectionHeader">
14 <h2 class="sectionTitle" id="group{@$team->groupID}">{$team->groupName|language} <span class="badge">{#$team->getMembers()|count}</span></h2>
15 <small class="sectionDescription">{$team->groupDescription|language}</small>
16 </header>
17
18 <ol class="containerList userList">
19 {foreach from=$team->getMembers() item=user}
20 {include file='userListItem'}
21 {/foreach}
22 </ol>
23 </section>
24 {/foreach}
25
26 <footer class="contentFooter">
27 {hascontent}
28 <nav class="contentFooterNavigation">
29 <ul>
30 {content}{event name='contentFooterNavigation'}{/content}
31 </ul>
32 </nav>
33 {/hascontent}
34 </footer>
35
36 <script data-relocate="true">
37 //<![CDATA[
38 $(function() {
39 WCF.Language.addObject({
40 'wcf.user.button.follow': '{lang}wcf.user.button.follow{/lang}',
41 'wcf.user.button.ignore': '{lang}wcf.user.button.ignore{/lang}',
42 'wcf.user.button.unfollow': '{lang}wcf.user.button.unfollow{/lang}',
43 'wcf.user.button.unignore': '{lang}wcf.user.button.unignore{/lang}'
44 });
45
46 new WCF.User.Action.Follow($('.userList > li'));
47 new WCF.User.Action.Ignore($('.userList > li'));
48 });
49 //]]>
50 </script>
51
52 {include file='footer'}