Wiki source code of Query Variables
Last modified by Thomas Mortagne on 2016/07/19
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #set ($config = 'ActiveInstalls.ActiveInstallsConfig') | ||
3 | #set ($configObj = $xwiki.getDocument($config).getObject($config)) | ||
4 | #set ($displaySnapshots = ("$configObj.getProperty('snapshots').value" == '1')) | ||
5 | #set ($distributionId = $configObj.getProperty('distributionId').value) | ||
6 | #if ($displaySnapshots) | ||
7 | #set ($snapshotQueryFragment = '') | ||
8 | #else | ||
9 | #set ($snapshotQueryFragment = ' AND -distributionVersion:*SNAPSHOT') | ||
10 | #end | ||
11 | {{/velocity}} |