Toggle navigation
Entrar
Registrar
Administração de Dados
Índice de Documentos
Diretório de Usuários
Application Index
Home
Documentos nessa wiki
Código fonte Wiki de
Documentos nessa wiki
Última modificação por superadmin em 03/12/2018, 18:46
Mostrar números de linha
{{velocity}} ##================ ## Find which tab to display ##================ #if("$!{view}" == '') #set($view = $request.getParameter('view')) #if("$!{view}" == '') #set ($view = 'index') #end #end ##======== ## Set Tab Data ##======== #set($tabs = []) #macro(addAllDocsTab $tab) #if($xwiki.hasAccessLevel('view', "$!xcontext.user", $tab.get('document'))) #set($discard = $tabs.add($tab)) #end #end #addAllDocsTab({'tabName' : 'index', 'idSuffix' : 'index', 'translationKey' : 'platform.index', 'document' : 'XWiki.Tableview'}) #addAllDocsTab({'tabName' : 'tree', 'idSuffix' : 'treeview', 'translationKey' : 'platform.index.tree', 'document' : 'XWiki.Treeview'}) #if ($services.parentchild.isParentChildMechanismEnabled()) #addAllDocsTab({'tabName' : 'orphans', 'idSuffix' : 'orphansview', 'translationKey' : 'platform.index.orphaned', 'document' : 'XWiki.OrphanedPages'}) #end #addAllDocsTab({'tabName' : 'attachments', 'idSuffix' : 'attachments', 'translationKey' : 'platform.index.attachments', 'document' : 'XWiki.AllAttachments'}) #addAllDocsTab({'tabName' : 'deletedDocs', 'idSuffix' : 'deletedDocs', 'translationKey' : 'platform.index.documentsTrash', 'document' : 'XWiki.DeletedDocuments'}) #addAllDocsTab({'tabName' : 'deletedAttachments', 'idSuffix' : 'deletedAttachments', 'translationKey' : 'platform.index.attachmentsTrash', 'document' : 'XWiki.DeletedAttachments'}) ##============================================= ## Add External Links tab if the LinkChecker module is present. ## TODO: In the future replace this hardcoded link with Interface Extensions ##============================================= #if($services.rendering.defaultTransformationNames.contains('linkchecker') && $services.linkchecker) #set ($dummy = $tabs.add({'tabName' : 'externalLinks', 'idSuffix' : 'externalLinks', 'translationKey' : 'platform.linkchecker.indexTab', 'document' : 'XWiki.ExternalLinks'})) #end ##=========== ## Display the Tabs ##=========== {{html}} <div class="floatcontainer"> <ul class="xwikitabbar"> #foreach ($tab in $tabs) <li id="xwiki$tab['idSuffix']"#if($view == $tab['tabName']) class="active"#end><a href="$doc.getURL('view', "view=$tab['tabName']&$!param")">$services.localization.render($tab['translationKey'])</a></li> #end </ul> </div> {{/html}} ##========================== ## Include the Tab data for the selected Tab ##========================== {{html wiki="true"}} <div class='xwikitabpanescontainer'> #foreach ($tab in $tabs) #if ($tab['tabName'] == $view) {{include reference="$tab['document']"/}} #break #end #end </div> {{/html}} #set($docextras=[]) {{/velocity}}