Wiki source code of $services.localization.render('diagram.app.title')
Version 1.1 by Ludovic Dubost on 2023/05/15
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{include reference="Licenses.Code.VelocityMacros"/}} | ||
2 | |||
3 | {{velocity output="false"}} | ||
4 | #macro (diagramLiveTable) | ||
5 | #set ($columnsProperties = { | ||
6 | 'doc.location': {"type":"text","size":20,"html":true}, | ||
7 | 'doc.date': {"type":"text","size":10}, | ||
8 | 'doc.author': {"type":"text","size":10,"link":"author"}, | ||
9 | '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]} | ||
10 | }) | ||
11 | #set ($options = { | ||
12 | 'className': 'Diagram.DiagramClass', | ||
13 | 'resultPage': 'Diagram.DiagramLiveTableResults', | ||
14 | 'translationPrefix': 'diagram.livetable.', | ||
15 | 'tagCloud': true, | ||
16 | 'rowCount': 15, | ||
17 | 'maxPages': 10 | ||
18 | }) | ||
19 | #set ($columns = ['doc.location', 'doc.date', 'doc.author', '_actions']) | ||
20 | #livetable('diagram' $columns $columnsProperties $options) | ||
21 | #end | ||
22 | {{/velocity}} | ||
23 | |||
24 | {{velocity}} | ||
25 | #if ($services.licensing.licensor.hasLicensureForEntity( | ||
26 | $services.model.createDocumentReference('', 'Diagram', 'DiagramClass'))) | ||
27 | #diagramLiveTable() | ||
28 | #else | ||
29 | {{error}}#getMissingLicenseMessage('diagram.extension.name'){{/error}} | ||
30 | #end | ||
31 | {{/velocity}} |