<
From version < 4.6 >
edited by Eduard Moraru
on 2017/06/21
To version < 4.8 >
edited by Eduard Moraru
on 2017/06/21
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,19 @@
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}}
2 2  ## ################################################################
3 3  ## Generate URL to OW2 XWiki files that will be used by Main.Download.DownloadForm page
4 4  ## ################################################################
... ... @@ -18,33 +18,20 @@
18 18  ## ################################################################
19 19  ## $categories = Name (0) - Distributions (1) - Color (2) - Description (3)
20 20  ## ################################################################
21 -#macro (loadCategories)
22 - #set ($categories = [
36 +#set ($categories = [
23 23   ['Demo Installation', $demoDistibutions, 'green',
24 24   "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."],
25 25   ['Production Installation', $productionDistibutions, 'blue',
26 26   "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."]
27 - ])
28 -#end
41 +])
29 29  ## ################################################################
30 30  ## Request Handler
31 31  ## ################################################################
32 32  #set ($projectVersion = $request.get('projectVersion'))
33 33  #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 44   $xwiki.ssx.use("Download.WebHome")
45 45   {{html wiki='true'}}
46 46   <div class='download-options download-installation'>
47 - #loadCategories()
48 48   #foreach($category in $categories)
49 49   <div class='col-xs-12 download-container download-option border-$category.get(2)'>
50 50   <h3>$category.get(0)</h3>

Get Connected