Commit | Line | Data |
---|---|---|
e91846e9 JR |
1 | {capture assign='pageTitle'}{$trophy->getTitle()}{if $pageNo > 1} - {lang}wcf.page.pageNo{/lang}{/if}{/capture} |
2 | ||
3 | {capture assign='headContent'} | |
4 | {if $pageNo < $pages} | |
5 | <link rel="next" href="{link controller='Trophy' object=$trophy}pageNo={@$pageNo+1}{/link}"> | |
6 | {/if} | |
7 | {if $pageNo > 1} | |
8 | <link rel="prev" href="{link controller='Trophy' object=$trophy}{if $pageNo > 2}pageNo={@$pageNo-1}{/if}{/link}"> | |
9 | {/if} | |
10 | {/capture} | |
11 | ||
12 | {capture assign='contentHeader'} | |
13 | <header class="contentHeader messageGroupContentHeader"> | |
14 | <div class="contentHeaderIcon"> | |
15 | {@$trophy->renderTrophy(64)} | |
16 | </div> | |
17 | ||
18 | <div class="contentHeaderTitle"> | |
19 | <h1 class="contentTitle">{$trophy->getTitle()}</h1> | |
20 | <ul class="inlineList contentHeaderMetaData"> | |
b5be45d7 | 21 | {if !$trophy->getDescription()|empty}<li>{@$trophy->getDescription()}</li>{/if} |
4b69482a JR |
22 | <li> |
23 | <span class="icon icon16 fa-users"></span> | |
24 | <span>{lang}wcf.user.trophy.trophyAwarded{/lang}</span> | |
25 | </li> | |
e91846e9 JR |
26 | </ul> |
27 | </div> | |
28 | </header> | |
29 | {/capture} | |
30 | ||
31 | {include file='header'} | |
32 | ||
33 | {hascontent} | |
34 | <div class="paginationTop"> | |
35 | {content} | |
36 | {pages print=true assign='pagesLinks' controller='Trophy' object=$trophy link="pageNo=%d"} | |
37 | {/content} | |
38 | </div> | |
39 | {/hascontent} | |
40 | ||
41 | {if $objects|count} | |
f58f149d MW |
42 | <div class="section sectionContainerList"> |
43 | <ol class="containerList trophyCategoryList doubleColumned"> | |
44 | {foreach from=$objects item=userTrophy} | |
45 | <li class="box64"> | |
46 | <div>{@$userTrophy->getUserProfile()->getAvatar()->getImageTag(64)}</div> | |
47 | ||
48 | <div class="containerHeadline"> | |
49 | <h3>{user object=$userTrophy->getUserProfile()}</h3> | |
50 | <small>{if !$userTrophy->getDescription()|empty}<span class="separatorRight">{@$userTrophy->getDescription()}</span> {/if}{@$userTrophy->time|time}</small> | |
51 | </div> | |
52 | </li> | |
53 | {/foreach} | |
54 | </ol> | |
55 | </div> | |
e91846e9 | 56 | {else} |
fc7cf040 | 57 | <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p> |
e91846e9 JR |
58 | {/if} |
59 | ||
60 | <footer class="contentFooter"> | |
61 | {hascontent} | |
62 | <div class="paginationBottom"> | |
63 | {content}{@$pagesLinks}{/content} | |
64 | </div> | |
65 | {/hascontent} | |
66 | ||
67 | {hascontent} | |
68 | <nav class="contentFooterNavigation"> | |
69 | <ul> | |
70 | {content}{event name='contentFooterNavigation'}{/content} | |
71 | </ul> | |
72 | </nav> | |
73 | {/hascontent} | |
74 | </footer> | |
75 | ||
b5332f78 | 76 | {include file='footer'} |