Wiki source code of AdminWikisTemplatesSheet
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | (% class="noitems" %) | ||
3 | {{translation key="admin.wikis.templates.hint" /}} | ||
4 | |||
5 | #set($columns = ['wikiprettyname', 'description', 'owner', 'membershipType']) | ||
6 | #if(!$isGuest) | ||
7 | #set($discard = $columns.add('_actions')) | ||
8 | #end | ||
9 | |||
10 | #set ($liveDataConfig = { | ||
11 | 'meta': { | ||
12 | 'propertyDescriptors': [ | ||
13 | { 'id': 'wikiprettyname', 'displayer': { 'id': 'link', 'propertyHref': 'wikiprettyname_url' } }, | ||
14 | { 'id': 'membershipType', 'sortable': false, 'filterable': false } | ||
15 | ] | ||
16 | } | ||
17 | }) | ||
18 | #set ($sourceParameters = $escapetool.url({ | ||
19 | 'className': 'XWiki.XWikiServerClass', | ||
20 | 'resultPage': 'WikiManager.WikisLiveTableResults', | ||
21 | 'translationPrefix': 'platform.wiki.browse.', | ||
22 | 'onlyTemplates': '1', | ||
23 | '$doc' : $doc.fullName | ||
24 | })) | ||
25 | {{liveData | ||
26 | id='wikis' | ||
27 | source='liveTable' | ||
28 | sourceParameters="$sourceParameters" | ||
29 | properties="$stringtool.join($columns, ',')" | ||
30 | limit=10 | ||
31 | }}$jsontool.serialize($liveDataConfig){{/liveData}} | ||
32 | {{/velocity}} |