Wiki-Quellcode von Diagrams
Zuletzt geändert von xwikiadmin am 2024/06/24 14:50
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{velocity output="false"}} |
2 | #macro (diagramLiveTable) | ||
3 | #set ($columnsProperties = { | ||
4 | 'doc.location': {"type":"text","size":20,"html":true}, | ||
5 | 'doc.date': {"type":"text","size":10}, | ||
6 | 'doc.author': {"type":"text","size":10,"link":"author"}, | ||
7 | '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]} | ||
8 | }) | ||
9 | #set ($options = { | ||
10 | 'className': 'Diagram.DiagramClass', | ||
11 | 'resultPage': 'Diagram.DiagramLiveTableResults', | ||
12 | 'translationPrefix': 'diagram.livetable.', | ||
13 | 'tagCloud': true, | ||
14 | 'rowCount': 15, | ||
15 | 'maxPages': 10 | ||
16 | }) | ||
17 | #set ($columns = ['doc.location', 'doc.date', 'doc.author', '_actions']) | ||
18 | #livetable('diagram' $columns $columnsProperties $options) | ||
19 | #end | ||
20 | {{/velocity}} | ||
21 | |||
22 | {{velocity}} | ||
23 | #if ($services.licensing.licensor.hasLicensureForEntity( | ||
24 | $services.model.createDocumentReference('', 'Diagram', 'DiagramClass'))) | ||
25 | #diagramLiveTable() | ||
26 | #else | ||
![]() |
2.1 | 27 | {{missingLicenseMessage extensionName="diagram.extension.name"/}} |
![]() |
1.1 | 28 | #end |
29 | {{/velocity}} |