Changes for page Pages on this Wiki
Last modified by Thomas Mortagne on 2015/11/23 11:40
Summary
-
Page properties (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -$s ervices.localization.render('platform.index.documents')1 +$msg.get("platform.index.documents") - Default language
-
... ... @@ -1,0 +1,1 @@ 1 +en - Hidden
-
... ... @@ -1,1 +1,1 @@ 1 - true1 +false - Content
-
... ... @@ -11,18 +11,14 @@ 11 11 ##======== 12 12 ## Set Tab Data 13 13 ##======== 14 -#set($tabs = []) 15 -#macro(addAllDocsTab $tab) 16 - #if($xwiki.hasAccessLevel('view', "$!context.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 -#addAllDocsTab({'tabName' : 'orphans', 'idSuffix' : 'orphansview', 'translationKey' : 'platform.index.orphaned', 'document' : 'XWiki.OrphanedPages'}) 23 -#addAllDocsTab({'tabName' : 'attachments', 'idSuffix' : 'attachments', 'translationKey' : 'platform.index.attachments', 'document' : 'XWiki.AllAttachments'}) 24 -#addAllDocsTab({'tabName' : 'deletedDocs', 'idSuffix' : 'deletedDocs', 'translationKey' : 'platform.index.documentsTrash', 'document' : 'XWiki.DeletedDocuments'}) 25 -#addAllDocsTab({'tabName' : 'deletedAttachments', 'idSuffix' : 'deletedAttachments', 'translationKey' : 'platform.index.attachmentsTrash', 'document' : 'XWiki.DeletedAttachments'}) 14 +#set ($tabs = [ 15 + {'tabName' : 'index', 'idSuffix' : 'index', 'translationKey' : 'platform.index', 'document' : 'XWiki.Tableview'}, 16 + {'tabName' : 'tree', 'idSuffix' : 'treeview', 'translationKey' : 'platform.index.tree', 'document' : 'XWiki.Treeview'}, 17 + {'tabName' : 'orphans', 'idSuffix' : 'orphansview', 'translationKey' : 'platform.index.orphaned', 'document' : 'XWiki.OrphanedPages'}, 18 + {'tabName' : 'attachments', 'idSuffix' : 'attachments', 'translationKey' : 'platform.index.attachments', 'document' : 'XWiki.AllAttachments'}, 19 + {'tabName' : 'deletedDocs', 'idSuffix' : 'deletedDocs', 'translationKey' : 'platform.index.documentsTrash', 'document' : 'XWiki.DeletedDocuments'}, 20 + {'tabName' : 'deletedAttachments', 'idSuffix' : 'deletedAttachments', 'translationKey' : 'platform.index.attachmentsTrash', 'document' : 'XWiki.DeletedAttachments'} 21 +]) 26 26 ##============================================= 27 27 ## Add External Links tab if the LinkChecker module is present. 28 28 ## TODO: In the future replace this hardcoded link with Interface Extensions ... ... @@ -37,7 +37,7 @@ 37 37 <div class="floatcontainer"> 38 38 <ul class="xwikitabbar"> 39 39 #foreach ($tab in $tabs) 40 - <li id="xwiki$tab['idSuffix']"#if($view == $tab['tabName']) class="active"#end><a href="$doc.getURL('view', "view=$tab['tabName']&$!param")">$s ervices.localization.render($tab['translationKey'])</a></li>36 + <li id="xwiki$tab['idSuffix']"#if($view == $tab['tabName']) class="active"#end><a href="$doc.getURL('view', "view=$tab['tabName']&$!param")">$msg.get($tab['translationKey'])</a></li> 41 41 #end 42 42 </ul> 43 43 </div>