<
From version < 22.1 >
edited by Ecaterina Moraru (Valica)
on 2017/08/21
To version < 23.1 >
edited by Thomas Mortagne
on 2020/01/28
>
Change comment: Install extension [org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki/11.10.2]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.evalica
1 +XWiki.ThomasMortagne
Content
... ... @@ -5,13 +5,11 @@
5 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 6  #end
7 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 10  #set($columns = ['wikiprettyname', 'description', 'owner', 'doc.creationDate', 'membershipType'])
11 11  #set($columnsProperties = {
12 12   'wikiprettyname' : { 'type' : 'text', 'link' : 'field' },
13 13   'description' : { 'type' : 'text' , 'size' : 50, 'html' : 'true' },
14 - 'owner' : { 'type' : 'text', 'size' : 10, 'html' : 'true' },
12 + 'owner' : { 'html' : 'true' },
15 15   'membershipType' : { 'sortable': false, 'filterable': false},
16 16   'doc.creationDate' : { 'type' : 'date', 'size' : 10, 'html' : 'false' }
17 17  })
... ... @@ -23,7 +23,16 @@
23 23  })
24 24  #if(!$isGuest)
25 25   #set($discard = $columns.add('_actions'))
26 - #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 + }))
27 27  #end
28 28  #livetable('wikis', $columns, $columnsProperties, $options)
29 29  #set($docextras=[])
XWiki.StyleSheetExtension[0]
Caching policy
... ... @@ -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 content
... ... @@ -1,1 +1,0 @@
1 -1
Use this extension
... ... @@ -1,1 +1,0 @@
1 -currentPage

Get Connected