Merge branch '2.0'
[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 {capture assign='sidebar'}
30 {@$__boxSidebar}
31 {/capture}
32
33 {include file='header' sidebarOrientation='right'}
34
35 <header class="boxHeadline">
36 <h1>{lang}wcf.user.team{/lang}</h1>
37 </header>
38
39 {include file='userNotice'}
40
41 <div class="contentNavigation">
42 {hascontent}
43 <nav>
44 <ul>
45 {content}
46 {event name='contentNavigationButtonsTop'}
47 {/content}
48 </ul>
49 </nav>
50 {/hascontent}
51 </div>
52
53 {foreach from=$objects->getTeams() item=team}
54 <header class="boxHeadline boxSubHeadline">
55 <h2 id="group{@$team->groupID}">{$team->groupName|language} <span class="badge">{#$team->getMembers()|count}</span></h2>
56 <p>{$team->groupDescription|language}</p>
57 </header>
58
59 <div class="container marginTop">
60 <ol class="containerList userList">
61 {foreach from=$team->getMembers() item=user}
62 {include file='userListItem'}
63 {/foreach}
64 </ol>
65 </div>
66 {/foreach}
67
68 <div class="contentNavigation">
69 {hascontent}
70 <nav>
71 <ul>
72 {content}
73 {event name='contentNavigationButtonsBottom'}
74 {/content}
75 </ul>
76 </nav>
77 {/hascontent}
78 </div>
79
80 {include file='footer'}
81
82 </body>
83 </html>