Wiki source code of Release Notes Changes
Version 3.1 by Vincent Massol on 2016/10/01
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Generate Report = | ||
2 | |||
3 | Notes: | ||
4 | * Lists are allowed by using commas (e.g. "High,Medium") | ||
5 | * Wildcards are allowed (e.g. "8.3%") | ||
6 | |||
7 | {{include reference="ReleaseNotes.Code.HomeGenerateReleaseNotes"/}} | ||
8 | |||
9 | = Existing Changes = | ||
10 | |||
11 | {{include reference="ReleaseNotes.Code.ChangesVelocityMacros"/}} | ||
12 | |||
13 | {{velocity}} | ||
14 | #set ($topSpace = $doc.documentReference.extractFirstReference('SPACE').getName()) | ||
15 | #set ($product = $request.product) | ||
16 | #if ("$!product" == '') | ||
17 | #set ($configDoc = $xwiki.getDocument("${topSpace}.Code.ReleaseNotesConfig")) | ||
18 | #set ($product = $configDoc.getValue('product')) | ||
19 | #end | ||
20 | ## Add new change | ||
21 | #if ($request.action == 'add') | ||
22 | #handleAddAction($product, $!request.version, $!request.queryString) | ||
23 | #end | ||
24 | {{html clean='false'}} | ||
25 | <form> | ||
26 | <input type="hidden" name="action" value="add"/> | ||
27 | <input type="hidden" name="template" value="${topSpace}.Code.ChangesTemplate"/> | ||
28 | <input id="product" type="text" name="product" value="XWiki" size="16"/> | ||
29 | <input id="version" type="text" name="version" value="Product version..." size="16" class="withTip"/> | ||
30 | <span class="buttonwrapper"> | ||
31 | <input class="button" type="submit" value="Add Change"/> | ||
32 | </span> | ||
33 | </form> | ||
34 | {{/html}} | ||
35 | |||
36 | #set($columns = ['doc.creationDate', 'product', 'version', 'category', 'audience', 'title', 'importance', 'summary' ]) | ||
37 | #set($columnsProperties = { | ||
38 | 'doc.creationDate' : { 'type' : 'date', 'link' : true }, | ||
39 | 'product' : { 'type' : 'text', 'match': 'partial' }, | ||
40 | 'version' : { 'type' : 'text', 'match': 'partial' }, | ||
41 | 'category' : { 'type' : 'text', 'match': 'partial' }, | ||
42 | 'audience' : { 'type' : 'text', 'match': 'partial' }, | ||
43 | 'title' : { 'type' : 'text', 'sortable' : false }, | ||
44 | 'importance' : { 'type' : 'text'}, | ||
45 | 'summary' : { 'type' : 'text', 'html' : 'true', 'sortable' : false } | ||
46 | }) | ||
47 | #set($options = { | ||
48 | "className" : "${topSpace}.Code.ChangesClass", | ||
49 | "translationPrefix" : "releasenotes.changes.livetable.", | ||
50 | "tagCloud" : true, | ||
51 | "rowCount": 15 | ||
52 | }) | ||
53 | #livetable("releasenoteschanges" $columns $columnsProperties $options) | ||
54 | {{/velocity}} |