Merge branch '5.3'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / categoryTrophyList.tpl
1 {capture assign='pageTitle'}{$category->getTitle()}{if $pageNo > 1} - {lang}wcf.page.pageNo{/lang}{/if}{/capture}
2
3 {capture assign='contentHeader'}
4 <header class="contentHeader messageGroupContentHeader">
5 <div class="contentHeaderTitle">
6 <h1 class="contentTitle">{$category->getTitle()}</h1>
7 {if $category && $category->getDescription()}
8 <p class="contentHeaderDescription">{if $category->descriptionUseHtml}{@$category->getDescription()}{else}{$category->getDescription()}{/if}</p>
9 {/if}
10 </div>
11 </header>
12 {/capture}
13
14 {capture assign='headContent'}
15 {if $pageNo < $pages}
16 <link rel="next" href="{link controller='CategoryTrophyList' object=$category}pageNo={@$pageNo+1}{/link}">
17 {/if}
18 {if $pageNo > 1}
19 <link rel="prev" href="{link controller='CategoryTrophyList' object=$category}{if $pageNo > 2}pageNo={@$pageNo-1}{/if}{/link}">
20 {/if}
21 {/capture}
22
23 {include file='header'}
24
25 {hascontent}
26 <div class="paginationTop">
27 {content}
28 {pages print=true assign='pagesLinks' controller='CategoryTrophyList' object=$category link="pageNo=%d"}
29 {/content}
30 </div>
31 {/hascontent}
32
33 {if $objects|count}
34 <div class="section sectionContainerList">
35 <ol class="containerList trophyCategoryList doubleColumned">
36 {foreach from=$objects item=trophy}
37 <li class="box64">
38 <div>{@$trophy->renderTrophy(64)}</div>
39
40 <div class="containerHeadline">
41 <h3><a href="{$trophy->getLink()}">{@$trophy->getTitle()}</a></h3>
42 {if !$trophy->getDescription()|empty}<p><small>{@$trophy->getDescription()}</small></p>{/if}
43 <p><small>{lang items=$trophy->awarded}wcf.user.trophy.trophyAwarded{/lang}</small></p>
44 </div>
45 </li>
46 {/foreach}
47 </ol>
48 </div>
49 {else}
50 <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
51 {/if}
52
53 <footer class="contentFooter">
54 {hascontent}
55 <div class="paginationBottom">
56 {content}{@$pagesLinks}{/content}
57 </div>
58 {/hascontent}
59
60 {hascontent}
61 <nav class="contentFooterNavigation">
62 <ul>
63 {content}{event name='contentFooterNavigation'}{/content}
64 </ul>
65 </nav>
66 {/hascontent}
67 </footer>
68
69 {include file='footer'}