Changes for page Browse Wikis
Last modified by Administrator on 2020/09/21 16:06
edited by Administrator
on 2015/07/06 22:29
on 2015/07/06 22:29
edited by Administrator
on 2020/09/21 16:06
on 2020/09/21 16:06
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki/11.10.10]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,11 +1,15 @@ 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')) 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}} 4 4 #set($columns = ['wikiprettyname', 'description', 'owner', 'doc.creationDate', 'membershipType']) 5 5 #set($columnsProperties = { 6 6 'wikiprettyname' : { 'type' : 'text', 'link' : 'field' }, 7 7 'description' : { 'type' : 'text' , 'size' : 50, 'html' : 'true' }, 8 - 'owner' : { ' type' : 'text', 'size' : 10, 'html' : 'true' },12 + 'owner' : { 'html' : 'true' }, 9 9 'membershipType' : { 'sortable': false, 'filterable': false}, 10 10 'doc.creationDate' : { 'type' : 'date', 'size' : 10, 'html' : 'false' } 11 11 }) ... ... @@ -17,7 +17,16 @@ 17 17 }) 18 18 #if(!$isGuest) 19 19 #set($discard = $columns.add('_actions')) 20 - #set($discard = $columnsProperties.put('_actions', { 'actions' : ['join', 'requestJoin', 'cancelJoinRequest', 'viewInvitation', 'leave', 'edit', 'delete'] })) 24 + #set($discard = $columnsProperties.put('_actions', { 25 + 'actions': [ 26 + {'id': 'join', 'icon': 'user_add'}, 27 + {'id': 'leave', 'icon': 'user_delete'}, 28 + {'id': 'requestJoin', 'icon': 'bell'}, 29 + {'id': 'cancelJoinRequest', 'icon': 'bell_delete'}, 30 + {'id': 'viewInvitation', 'icon': 'envelope'}, 31 + 'edit', 'delete' 32 + ] 33 + })) 21 21 #end 22 22 #livetable('wikis', $columns, $columnsProperties, $options) 23 23 #set($docextras=[])
- XWiki.StyleSheetExtension[0]
-
- cache
-
... ... @@ -1,1 +1,0 @@ 1 -long - code
-
... ... @@ -1,19 +1,0 @@ 1 -.actionjoin { 2 - background-image: url("$xwiki.getSkinFile('icons/silk/user_add.png')"); 3 -} 4 - 5 -.actionleave { 6 - background-image: url("$xwiki.getSkinFile('icons/silk/user_delete.png')"); 7 -} 8 - 9 -.actionrequestJoin { 10 - background-image: url("$xwiki.getSkinFile('icons/silk/bell.png')"); 11 -} 12 - 13 -.actioncancelJoinRequest { 14 - background-image: url("$xwiki.getSkinFile('icons/silk/bell_delete.png')"); 15 -} 16 - 17 -.actionviewInvitation { 18 - background-image: url("$xwiki.getSkinFile('icons/silk/script.png')"); 19 -} - parse
-
... ... @@ -1,1 +1,0 @@ 1 -1 - use
-
... ... @@ -1,1 +1,0 @@ 1 -currentPage