<
From version < 4.19 >
edited by Eduard Moraru
on 2017/06/21
To version < 5.1 >
edited by Vincent Massol
on 2017/11/14
>
Change comment: Make it work for minor > 9

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.enygma
1 +XWiki.VincentMassol
Content
... ... @@ -6,9 +6,10 @@
6 6  #set ($projectVersion = $request.get('projectVersion'))
7 7  #if ("$!projectVersion" != '')
8 8   #set ($versionDataPage = '.Latest.WebHome')
9 - #set ($version = $stringtool.split($projectVersion, '.'))
9 + #set ($versionPart = $stringtool.substringBefore($projectVersion, '-'))
10 + #set ($version = $stringtool.split($versionPart, '.'))
10 10   #set ($majorVersion = $numbertool.toNumber($version[0]))
11 - #set ($minorVersion = $numbertool.toNumber($version[1].charAt(0)))
12 + #set ($minorVersion = $numbertool.toNumber($version[1]))
12 12   #if ($majorVersion <= 9 && $minorVersion < 5)
13 13   #set ($versionDataPage = '.Before9\.5.WebHome')
14 14   #end
... ... @@ -59,7 +59,7 @@
59 59   <p class='list-group-item-text noitems'>$distibution.get(3)</p>
60 60   <div class='buttons'>
61 61   #downloadurl($distibution.get(0), $projectVersion)
62 - #if ($distibution.get(4))
63 + #if ($stringtool.isNotBlank($distibution.get(4)))
63 63   (% class='btn btn-xs btn-link' %)[[Installation Notes>>$distibution.get(4)]](%%)
64 64   #end
65 65   </div>

Get Connected