Wiki source code of All Extensions
Last modified by Vincent Massol on 2022/09/23 13:32
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | ## Saving the fact that we're listing all extensions in the Session so that when the user is viewing an extension | ||
3 | ## and clicks in the breadcrumb to come back to Extensions.WebHome, we can redirect him/her to the same page he | ||
4 | ## initially viewing. | ||
5 | #set ($discard = $request.getSession().setAttribute("exoExtensionHome", 'ExtensionCode.AllExtensions.WebHome')) | ||
6 | {{/velocity}} | ||
7 | |||
8 | {{include document="ExtensionCode.ExtensionsLayout.WebHome"/}} | ||
9 | |||
10 | (% class="homepage-content container clearfix" %) | ||
11 | ((( | ||
12 | (% class="row" %) | ||
13 | ((( | ||
14 | (% class="col-xs-12 homepage" %) | ||
15 | ((( | ||
16 | |||
17 | = (%class="pull-left"%)All Extensions = | ||
18 | |||
19 | (%class="clearfix"%)((())) | ||
20 | |||
21 | {{velocity}} | ||
22 | ##set($columns = ["name", "summary", "category", "authors", "doc.creationDate", "doc.date", "installedCount", "rating"]) | ||
23 | #set($columns = ["name", "summary", "category", "authors", "doc.creationDate", "doc.date", "installedCount"]) | ||
24 | #set($columnsProperties = { | ||
25 | "name" : { "type" : "text", "link" : "view" }, | ||
26 | "summary" : { "type" : "text" }, | ||
27 | "category" : { "type" : "list" }, | ||
28 | "authors" : {'html': true}, | ||
29 | "doc.creationDate" : { "type" : "date" }, | ||
30 | "doc.date" : { "type" : "date" }, | ||
31 | "rating" : { 'html' : true, 'filterable' : false, 'sortable' : false} | ||
32 | }) | ||
33 | #set($options = { | ||
34 | "tagCloud":true, | ||
35 | "className":"ExtensionCode.ExtensionClass", | ||
36 | "selectedColumn":"doc.creationDate", | ||
37 | "defaultOrder":"desc", | ||
38 | "translationPrefix" : "extension.repository.", | ||
39 | "rowCount": 15 | ||
40 | }) | ||
41 | #livetable("extensions" $columns $columnsProperties $options) | ||
42 | {{/velocity}} | ||
43 | |||
44 | {{velocity}} | ||
45 | #if ("$!request.projects" == '1') | ||
46 | = (%class="pull-left"%)All Projects = | ||
47 | |||
48 | (%class="clearfix"%)((())) | ||
49 | |||
50 | #set($columns = ["name", "summary", "authors", "doc.creationDate", "doc.date"]) | ||
51 | #set($columnsProperties = { | ||
52 | "name" : { "type" : "text", "link" : "view" }, | ||
53 | "summary" : { "type" : "text" }, | ||
54 | "authors" : {'html': true}, | ||
55 | "doc.creationDate" : { "type" : "date" }, | ||
56 | "doc.date" : { "type" : "date" } | ||
57 | }) | ||
58 | #set($options = { | ||
59 | "tagCloud":true, | ||
60 | "className":"ExtensionCode.ProjectClass", | ||
61 | "selectedColumn":"doc.creationDate", | ||
62 | "defaultOrder":"desc", | ||
63 | "translationPrefix" : "extension.repository.", | ||
64 | "rowCount": 15 | ||
65 | }) | ||
66 | #livetable("projects" $columns $columnsProperties $options) | ||
67 | #end | ||
68 | {{/velocity}} | ||
69 | ))) | ||
70 | ))) | ||
71 | ))) |