Show last authors
1 {{velocity}}
2 ##================
3 ## Find which tab to display
4 ##================
5 #if("$!{view}" == '')
6 #set($view = $request.getParameter('view'))
7 #if("$!{view}" == '')
8 #set ($view = 'index')
9 #end
10 #end
11 ##========
12 ## Set Tab Data
13 ##========
14 #set($tabs = [])
15 #macro(addAllDocsTab $tab)
16 #if($xwiki.hasAccessLevel('view', "$!xcontext.user", $tab.get('document')))
17 #set($discard = $tabs.add($tab))
18 #end
19 #end
20 #addAllDocsTab({'tabName' : 'index', 'idSuffix' : 'index', 'translationKey' : 'platform.index', 'document' : 'XWiki.Tableview'})
21 #addAllDocsTab({'tabName' : 'tree', 'idSuffix' : 'treeview', 'translationKey' : 'platform.index.tree', 'document' : 'XWiki.Treeview'})
22 ##=============================================
23 ## Add External Links tab if the LinkChecker module is present.
24 ## TODO: In the future replace this hardcoded link with Interface Extensions
25 ##=============================================
26 #if($services.rendering.defaultTransformationNames.contains('linkchecker') && $services.linkchecker)
27 #set ($dummy = $tabs.add({'tabName' : 'externalLinks', 'idSuffix' : 'externalLinks', 'translationKey' : 'platform.linkchecker.indexTab', 'document' : 'XWiki.ExternalLinks'}))
28 #end
29 ##===========
30 ## Display the Tabs
31 ##===========
32 {{html}}
33 <div class="floatcontainer">
34 <ul class="xwikitabbar">
35 #foreach ($tab in $tabs)
36 <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>
37 #end
38 </ul>
39 </div>
40 {{/html}}
41
42 ##==========================
43 ## Include the Tab data for the selected Tab
44 ##==========================
45 {{html wiki="true"}}
46 <div class='xwikitabpanescontainer'>
47 #foreach ($tab in $tabs)
48 #if ($tab['tabName'] == $view)
49 {{include reference="$tab['document']"/}}
50 #break
51 #end
52 #end
53 </div>
54 {{/html}}
55 #set($docextras=[])
56 {{/velocity}}
Lone Wolf Development, Inc.
support@wolflair.com