Wiki source code of $services.localization.render('platform.wiki.browse')
Version 12.1 by Vincent Massol on 2014/03/26
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
11.1 | 1 | {{velocity}} |
2 | ## Load the User Picker style for the wiki owner column. | ||
3 | #set($discard = $xwiki.ssfx.use('uicomponents/widgets/userpicker/userPicker.css')) | ||
![]() |
12.1 | 4 | #set($columns = ['wikiprettyname', 'description', 'owner', 'doc.creationDate', 'membershipType']) |
![]() |
11.1 | 5 | #set($columnsProperties = { |
6 | 'wikiprettyname' : { 'type' : 'text', 'link' : 'field' }, | ||
7 | 'description' : { 'type' : 'text' , 'size' : 50, 'html' : 'true' }, | ||
8 | 'owner' : { 'type' : 'text', 'size' : 10, 'html' : 'true' }, | ||
![]() |
12.1 | 9 | 'membershipType' : { 'sortable': false, 'filterable': false}, |
10 | 'doc.creationDate' : { 'type' : 'date', 'size' : 10, 'html' : 'false' } | ||
![]() |
11.1 | 11 | }) |
12 | #set($options = { | ||
13 | 'className' : 'XWiki.XWikiServerClass', | ||
14 | 'rowCount' : 10, | ||
15 | 'resultPage' : 'WikiManager.WikisLiveTableResults', | ||
16 | 'translationPrefix' : 'platform.wiki.browse.' | ||
17 | }) | ||
18 | #if(!$isGuest) | ||
19 | #set($discard = $columns.add('_actions')) | ||
20 | #set($discard = $columnsProperties.put('_actions', { 'actions' : ['join', 'requestJoin', 'cancelJoinRequest', 'viewInvitation', 'leave', 'edit', 'delete'] })) | ||
![]() |
1.1 | 21 | #end |
![]() |
11.1 | 22 | #livetable('wikis', $columns, $columnsProperties, $options) |
23 | {{/velocity}} |