Wiki source code of Discussions
Last modified by Simon Urli on 2025/05/16
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #if ($hasAdmin) | ||
3 | = Discussions Index = | ||
4 | |||
5 | #set($columns = ['reference', 'title', 'creationDate', 'updateDate', 'discussionContexts']) | ||
6 | #set($columnsProperties = { | ||
7 | 'title': { 'link': 'auto' }, | ||
8 | 'creationDate': { 'type': 'date' }, | ||
9 | 'updateDate': { 'type': 'date' } | ||
10 | }) | ||
11 | #set($options = { | ||
12 | 'className': 'Discussions.Code.DiscussionClass', | ||
13 | 'translationPrefix': 'discussions.home.discussionsTable.column.' | ||
14 | }) | ||
15 | #livetable('discussionsTable' $columns $columnsProperties $options) | ||
16 | |||
17 | = Discussions Context Index = | ||
18 | |||
19 | #set($columns = ['reference', 'name', 'entityReferenceType', 'entityReference', 'creationDate', 'discussions']) | ||
20 | #set($columnsProperties = { | ||
21 | 'name': { 'link': 'auto' }, | ||
22 | 'creationDate': { 'type': 'date' } | ||
23 | }) | ||
24 | #set($options = { | ||
25 | 'className': 'Discussions.Code.DiscussionContextClass', | ||
26 | 'translationPrefix': 'discussions.home.discussionContextsTable.column.' | ||
27 | }) | ||
28 | #livetable('discussionContextsTable' $columns $columnsProperties $options) | ||
29 | #else | ||
30 | $services.localization.render('discussions.home.description') | ||
31 | #end | ||
32 | {{/velocity}} |