Merge remote-tracking branch 'refs/remotes/origin/3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / trophy.tpl
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">
21 {if !$trophy->getDescription()|empty}<li>{$trophy->getDescription()}</li>{/if}
22 <li>
23 <span class="icon icon16 fa-users"></span>
24 <span>{lang}wcf.user.trophy.trophyAwarded{/lang}</span>
25 </li>
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}
42 <ol class="section containerList trophyCategoryList tripleColumned">
43 {foreach from=$objects item=userTrophy}
44 <li class="box64">
45 <div>{@$userTrophy->getUserProfile()->getAvatar()->getImageTag(64)}</div>
46
47 <div class="sidebarItemTitle">
48 <h3>{@$userTrophy->getUserProfile()->getAnchorTag()}</h3>
49 <small>{if !$userTrophy->getDescription()|empty}{$userTrophy->getDescription()} – {/if}{@$userTrophy->time|time}</small>
50 </div>
51 </li>
52 {/foreach}
53 </ol>
54 {else}
55 <p class="info">{lang}wcf.global.noItems{/lang}</p>
56 {/if}
57
58 <footer class="contentFooter">
59 {hascontent}
60 <div class="paginationBottom">
61 {content}{@$pagesLinks}{/content}
62 </div>
63 {/hascontent}
64
65 {hascontent}
66 <nav class="contentFooterNavigation">
67 <ul>
68 {content}{event name='contentFooterNavigation'}{/content}
69 </ul>
70 </nav>
71 {/hascontent}
72 </footer>
73
74 {include file='footer'}