Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,19 +1,4 @@ 1 1 {{velocity}} 2 -#set ($projectVersion = $request.get('projectVersion')) 3 -#if ("$!projectVersion" != '') 4 - #set ($versionDataPage = '.Latest.WebHome') 5 - #set ($version = $stringtool.split($projectVersion, '.')) 6 - #set ($majorVersion = $numbertool.toNumber($version[0])) 7 - #set ($minorVersion = $numbertool.toNumber($version[1].charAt(0))) 8 - #if ($majorVersion <= 9 && $minorVersion < 5) 9 - #set ($versionDataPage = '.Before9\.5.WebHome') 10 - #end 11 - {{include reference="$versionDataPage" /}} 12 - 13 - $demoDistibutions 14 -#end 15 -{{/velocity}} 16 -{{velocity}} 17 17 ## ################################################################ 18 18 ## Generate URL to OW2 XWiki files that will be used by Main.Download.DownloadForm page 19 19 ## ################################################################ ... ... @@ -33,20 +33,35 @@ 33 33 ## ################################################################ 34 34 ## $categories = Name (0) - Distributions (1) - Color (2) - Description (3) 35 35 ## ################################################################ 36 -#set ($categories = [ 21 +#macro (loadCategories) 22 + #set ($categories = [ 37 37 ['Demo Installation', $demoDistibutions, 'green', 38 38 "These Demo packages are not supposed to be used in production, since the embedded database does not support large wikis efficiently and is not tuned for a production usage."], 39 39 ['Production Installation', $productionDistibutions, 'blue', 40 40 "Once you're more familiar with XWiki you might want to set it up on your own database or in your own container, in which case you'll then be able to download the WAR file and set up your instance."] 41 -]) 27 + ]) 28 +#end 42 42 ## ################################################################ 43 43 ## Request Handler 44 44 ## ################################################################ 45 45 #set ($projectVersion = $request.get('projectVersion')) 46 46 #if ("$!projectVersion" != '') 34 + #set ($versionDataPage = '.Latest.WebHome') 35 + #set ($version = $stringtool.split($projectVersion, '.')) 36 + #set ($majorVersion = $numbertool.toNumber($version[0])) 37 + #set ($minorVersion = $numbertool.toNumber($version[1].charAt(0))) 38 + #if ($majorVersion <= 9 && $minorVersion < 5) 39 + #set ($versionDataPage = '.Before9\.5.WebHome') 40 + #end 41 + $majorVersion . $minorVersion => $versionDataPage 42 + {{include reference="$versionDataPage" /}} 43 + 44 + $demoDistibutions 45 + 47 47 $xwiki.ssx.use("Download.WebHome") 48 48 {{html wiki='true'}} 49 49 <div class='download-options download-installation'> 49 + #loadCategories() 50 50 #foreach($category in $categories) 51 51 <div class='col-xs-12 download-container download-option border-$category.get(2)'> 52 52 <h3>$category.get(0)</h3>