Wiki source code of HomeReleaseChanges

Last modified by Vincent Massol on 2021/04/06

Show last authors
1 {{include reference="ReleaseNotes.Code.EntryVelocityMacros"/}}
2
3 {{velocity}}
4 #set ($topSpace = $doc.documentReference.extractFirstReference('SPACE').getName())
5 #if ($hasEdit)
6 ## Add new change
7 #if ($request.action == 'addChange')
8 #set ($product = $request.product)
9 #if ("$!product" == '')
10 #set ($configDoc = $xwiki.getDocument("${topSpace}.Code.ReleaseNotesConfig"))
11 #set ($product = $configDoc.getValue('product'))
12 #end
13 #handleAddAction($product, $!request.version, $!request.queryString)
14 #end
15 {{html clean='false'}}
16 <form>
17 <input type="hidden" name="action" value="addChange"/>
18 <input type="hidden" name="template" value="${topSpace}.Code.Change.ChangeTemplate"/>
19 <input type="hidden" name="type" value="Change"/>
20 <input id="product" type="text" name="product" value="XWiki" size="16"/>
21 <input id="version" type="text" name="version" value="Product version..." size="16" class="withTip"/>
22 <span class="buttonwrapper">
23 <input class="button" type="submit" value="Add Release Change"/>
24 </span>
25 </form>
26 {{/html}}
27 #end
28
29 #set($columns = ['doc.creationDate', 'product', 'version', 'category', 'audience', 'title', 'importance', 'summary' ])
30 #set($columnsProperties = {
31 'doc.creationDate' : { 'type' : 'date', 'link' : true },
32 'product' : { 'type' : 'text', 'match': 'partial' },
33 'version' : { 'type' : 'text', 'match': 'partial' },
34 'category' : { 'type' : 'text', 'match': 'partial' },
35 'audience' : { 'type' : 'text', 'match': 'partial' },
36 'title' : { 'type' : 'text', 'sortable' : false },
37 'importance' : { 'type' : 'text'},
38 'summary' : { 'type' : 'text', 'html' : 'true', 'sortable' : false }
39 })
40 #set($options = {
41 "className" : "${topSpace}.Code.Change.ChangeClass",
42 "translationPrefix" : "releasenotes.changes.livetable.",
43 "tagCloud" : true,
44 "rowCount": 15,
45 "extraParams" : "&product_class=${topSpace}.Code.EntryClass&version_class=${topSpace}.Code.EntryClass"
46 })
47 #livetable("releasenoteschanges" $columns $columnsProperties $options)
48 {{/velocity}}

Get Connected