Merge remote-tracking branch 'refs/remotes/origin/master' into next
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / team.tpl
1 {include file='documentHeader'}
2
3 <head>
4 <title>{lang}wcf.user.team{/lang} - {PAGE_TITLE|language}</title>
5
6 {include file='headInclude'}
7
8 <link rel="canonical" href="{link controller='Team'}{/link}" />
9
10 <script data-relocate="true">
11 //<![CDATA[
12 $(function() {
13 WCF.Language.addObject({
14 'wcf.user.button.follow': '{lang}wcf.user.button.follow{/lang}',
15 'wcf.user.button.ignore': '{lang}wcf.user.button.ignore{/lang}',
16 'wcf.user.button.unfollow': '{lang}wcf.user.button.unfollow{/lang}',
17 'wcf.user.button.unignore': '{lang}wcf.user.button.unignore{/lang}'
18 });
19
20 new WCF.User.Action.Follow($('.userList > li'));
21 new WCF.User.Action.Ignore($('.userList > li'));
22 });
23 //]]>
24 </script>
25 </head>
26
27 <body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
28
29 {include file='header'}
30
31 <header class="contentHeader">
32 <div class="contentHeaderTitle">
33 <h1 class="contentTitle">{lang}wcf.user.team{/lang}</h1>
34 </div>
35
36 {hascontent}
37 <nav class="contentHeaderNavigation">
38 <ul>
39 {content}{event name='contentHeaderNavigation'}{/content}
40 </ul>
41 </nav>
42 {/hascontent}
43 </header>
44
45 {include file='userNotice'}
46
47 {foreach from=$objects->getTeams() item=team}
48 <section class="section sectionContainerList">
49 <header class="sectionHeader">
50 <h2 class="sectionTitle" id="group{@$team->groupID}">{$team->groupName|language} <span class="badge">{#$team->getMembers()|count}</span></h2>
51 <small class="sectionDescription">{$team->groupDescription|language}</small>
52 </header>
53
54 <ol class="containerList userList">
55 {foreach from=$team->getMembers() item=user}
56 {include file='userListItem'}
57 {/foreach}
58 </ol>
59 </section>
60 {/foreach}
61
62 <footer class="contentFooter">
63 {hascontent}
64 <nav class="contentFooterNavigation">
65 <ul>
66 {content}{event name='contentFooterNavigation'}{/content}
67 </ul>
68 </nav>
69 {/hascontent}
70 </footer>
71
72 {include file='footer'}
73
74 </body>
75 </html>