Изменения документа Документы в данном Wiki
Редактировал(а) Thomas Mortagne 2017/11/21 12:37
От версии 5.1
отредактировано Eugen Colesnicov
на 2013/03/20 12:38
на 2013/03/20 12:38
Изменить комментарий:
Импортировано из XAR
К версии 6.1
отредактировано Eugen Colesnicov
на 2013/03/26 20:30
на 2013/03/26 20:30
Изменить комментарий:
Импортировано из XAR
Комментарий
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -11,14 +11,18 @@ 11 11 ##======== 12 12 ## Set Tab Data 13 13 ##======== 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 -]) 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'}) 22 22 ##============================================= 23 23 ## Add External Links tab if the LinkChecker module is present. 24 24 ## TODO: In the future replace this hardcoded link with Interface Extensions