Toggle navigation
Log-in
Register
Home
Page Index
User Index
Application Index
Global
Languages
Default Language
Wiki Index
Browse Wikis
Wiki source code of
Browse Wikis
Last modified by
Marcel Heckel
on 2017/01/25 10:29
Hide line numbers
1: {{velocity}} 2: {{html}} 3: #set ($createWikiDocReference = $services.model.createDocumentReference($services.wiki.mainWikiId, 'WikiManager', 'CreateWiki')) 4: #if ($hasCreateWiki&& $xwiki.exists($createWikiDocReference)&& $services.security.authorization.hasAccess('view', $createWikiDocReference)) 5: <p><a href="$xwiki.getURL('WikiManager.CreateWiki')" class="button button-success" id="tmCreateWiki">$services.icon.renderHTML('add') $services.localization.render('platform.wiki.create.button')</a></p> 6: #end 7: {{/html}} 8: ## Load the User Picker style for the wiki owner column. 9: #set($discard = $xwiki.ssfx.use('uicomponents/widgets/userpicker/userPicker.css')) 10: #set($columns = ['wikiprettyname', 'description', 'owner', 'doc.creationDate', 'membershipType']) 11: #set($columnsProperties = { 12: 'wikiprettyname' : { 'type' : 'text', 'link' : 'field' }, 13: 'description' : { 'type' : 'text' , 'size' : 50, 'html' : 'true' }, 14: 'owner' : { 'type' : 'text', 'size' : 10, 'html' : 'true' }, 15: 'membershipType' : { 'sortable': false, 'filterable': false}, 16: 'doc.creationDate' : { 'type' : 'date', 'size' : 10, 'html' : 'false' } 17: }) 18: #set($options = { 19: 'className' : 'XWiki.XWikiServerClass', 20: 'rowCount' : 10, 21: 'resultPage' : 'WikiManager.WikisLiveTableResults', 22: 'translationPrefix' : 'platform.wiki.browse.' 23: }) 24: #if(!$isGuest) 25: #set($discard = $columns.add('_actions')) 26: #set($discard = $columnsProperties.put('_actions', { 'actions' : ['join', 'requestJoin', 'cancelJoinRequest', 'viewInvitation', 'leave', 'edit', 'delete'] })) 27: #end 28: #livetable('wikis', $columns, $columnsProperties, $options) 29: #set($docextras=[]) 30: {{/velocity}}