Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. VincentMassol1 +XWiki.enygma - Content
-
... ... @@ -5,19 +5,25 @@ 5 5 ## 6 6 #set ($projectVersion = $request.get('projectVersion')) 7 7 #if ("$!projectVersion" != '') 8 - #set ($versionDataPage = '.Latest.WebHome') 9 9 #set ($versionPart = $stringtool.substringBefore($projectVersion, '-')) 10 10 #set ($version = $stringtool.split($versionPart, '.')) 11 11 #set ($majorVersion = $numbertool.toNumber($version[0])) 12 12 #set ($minorVersion = $numbertool.toNumber($version[1])) 12 + ## Read the version's artefacts and file names from the dedicated page. 13 + #set ($versionDataPage = '.Latest.WebHome') 14 + ## Dedicated pages exist for older versions with different contents and file names. 13 13 #if ($majorVersion <= 9 && $minorVersion < 5) 14 14 #set ($versionDataPage = '.Before9\.5.WebHome') 17 + #elseif ($majorVersion <= 10 && $minorVersion < 5) 18 + #set ($versionDataPage = '.Before10\.5.WebHome') 15 15 #end 20 +$versionDataPage 21 + 16 16 {{include reference="$versionDataPage" /}} 17 17 #end 18 18 {{/velocity}}{{velocity}} 19 19 ## ################################################################ 20 -## Generate URL to OW2XWiki files that will be used byMain.Download.DownloadForm page26 +## Generate the URL to XWiki files that will be used by the Download.DownloadForm page 21 21 ## ################################################################ 22 22 #macro(downloadurl $link $version) 23 23 #set ($downloadLinkData = $downloadLinks.get($link)) ... ... @@ -27,9 +27,11 @@ 27 27 ## This happens for instance when we rename an artifact. 28 28 #set ($downloadLinkData = $downloadLinkData.get($version)) 29 29 #end 36 + #set ($downloadLinkPath = "#getDownloadLinkPath($downloadLinkData, $version)") 30 30 #set ($version = $escapetool.xml($version)) 31 - #set ($downloadLink = "${downloadLinkData.get(0)}${version}${downloadLinkData.get(1)}") 32 - [[Download>>Download.DownloadForm||queryString="downloadURL=http://download.forge.ow2.org/xwiki/${downloadLink}&projectVersion=${version}" class="btn btn-xs btn-${downloadLinkData.get(2)}"]] 38 + ## Last $downloadLinkData element always contains the link button class. 39 + #set ($linkBtnClass = "${downloadLinkData.get($mathtool.sub($downloadLinkData.size(), 1))}") 40 + [[Download>>Download.DownloadForm||queryString="downloadURL=${downloadLinkBase}${downloadLinkPath}&projectVersion=${version}" class="btn btn-xs btn-$linkBtnClass"]] 33 33 #end 34 34 #end 35 35 ## ################################################################