Show last authors
1 {{velocity}}
2
3 ##================
4 ## Find which tab to display
5 ##================
6 #if("$!{view}" == '')
7 #set($view = $request.getParameter('view'))
8 #if("$!{view}" == '')
9 #set ($view = 'index')
10 #end
11 #end
12 ##========
13 ## Set Tab Data
14 ##========
15 #set($tabs = [])
16 #macro(addAllDocsTab $tab)
17 #if($xwiki.hasAccessLevel('view', "$!xcontext.user", $tab.get('document')))
18 #set($discard = $tabs.add($tab))
19 #end
20 #end
21 #addAllDocsTab({'tabName' : 'index', 'idSuffix' : 'index', 'translationKey' : 'platform.index', 'document' : 'XWiki.Tableview'})
22 #addAllDocsTab({'tabName' : 'tree', 'idSuffix' : 'treeview', 'translationKey' : 'platform.index.tree', 'document' : 'XWiki.Treeview'})
23 #if ($services.parentchild.isParentChildMechanismEnabled())
24 #addAllDocsTab({'tabName' : 'orphans', 'idSuffix' : 'orphansview', 'translationKey' : 'platform.index.orphaned', 'document' : 'XWiki.OrphanedPages'})
25 #end
26 #addAllDocsTab({'tabName' : 'attachments', 'idSuffix' : 'attachments', 'translationKey' : 'platform.index.attachments', 'document' : 'XWiki.AllAttachments'})
27 #addAllDocsTab({'tabName' : 'deletedDocs', 'idSuffix' : 'deletedDocs', 'translationKey' : 'platform.index.documentsTrash', 'document' : 'XWiki.DeletedDocuments'})
28 #addAllDocsTab({'tabName' : 'deletedAttachments', 'idSuffix' : 'deletedAttachments', 'translationKey' : 'platform.index.attachmentsTrash', 'document' : 'XWiki.DeletedAttachments'})
29 ##=============================================
30 ## Add External Links tab if the LinkChecker module is present.
31 ## TODO: In the future replace this hardcoded link with Interface Extensions
32 ##=============================================
33 #if($services.rendering.defaultTransformationNames.contains('linkchecker') && $services.linkchecker)
34 #set ($dummy = $tabs.add({'tabName' : 'externalLinks', 'idSuffix' : 'externalLinks', 'translationKey' : 'platform.linkchecker.indexTab', 'document' : 'XWiki.ExternalLinks'}))
35 #end
36 ##===========
37 ## Display the Tabs
38 ##===========
39 {{html}}
40 <div class="floatcontainer">
41 <ul class="xwikitabbar">
42 #foreach ($tab in $tabs)
43 <li id="xwiki$tab['idSuffix']"#if($view == $tab['tabName']) class="active"#end><a href="$doc.getURL('view', "view=$tab['tabName']&amp;$!param")">$services.localization.render($tab['translationKey'])</a></li>
44 #end
45 </ul>
46 </div>
47 {{/html}}
48
49 ##==========================
50 ## Include the Tab data for the selected Tab
51 ##==========================
52 {{html wiki="true"}}
53 <div class='xwikitabpanescontainer'>
54 #foreach ($tab in $tabs)
55 #if ($tab['tabName'] == $view)
56 {{include reference="$tab['document']"/}}
57 #break
58 #end
59 #end
60 </div>
61 {{/html}}
62 #set($docextras=[])
63 {{/velocity}}
64
65
66
2020 © Národní knihovna České republiky
Verze 2.0 beta