Wiki source code of $msg.get("xe.dashboard.wiki")
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity wiki="true"}} | ||
2 | ## | ||
3 | ## XWiki Dashboard | ||
4 | ## | ||
5 | ## This dashboard can be used for both wikis (Main.WebHome) | ||
6 | ## and spaces (*.WebHome). | ||
7 | ## | ||
8 | $xwiki.ssx.use('Main.Dashboard')## | ||
9 | #set ($isSpaceDashboard = false) | ||
10 | #if ($doc.space != "Main") | ||
11 | #set ($isSpaceDashboard = true) | ||
12 | #end | ||
13 | (% class="dashboard" %) | ||
14 | ((( | ||
15 | (% class="dashboardleft" %) | ||
16 | ((( | ||
17 | ## | ||
18 | ## Left column. | ||
19 | ## | ||
20 | (% class="dashboardleftcontent" %) | ||
21 | ((( | ||
22 | #if (!$isSpaceDashboard) | ||
23 | ## | ||
24 | ## Wiki spaces and tags | ||
25 | ## | ||
26 | = $msg.get("xe.dashboard.wiki.spaces") = | ||
27 | |||
28 | {{include document="Main.Spaces"/}} | ||
29 | |||
30 | = $msg.get("xe.dashboard.wiki.tagcloud") = | ||
31 | |||
32 | {{include document="XWiki.TagCloud"/}} | ||
33 | |||
34 | #else | ||
35 | ## | ||
36 | ## Space documents and tags | ||
37 | ## | ||
38 | = $msg.get("xe.dashboard.space.documents", [$doc.space]) = | ||
39 | |||
40 | #set ($docNames = $xwiki.getSpaceDocsName($doc.space)) | ||
41 | {{html}} | ||
42 | #displayDocumentList($docNames false []) | ||
43 | ## Note: we pass an empty blacklistedSpaces list since we are used as a space dashboard, not a global dashboard | ||
44 | {{/html}} | ||
45 | |||
46 | = $msg.get("xe.dashboard.wiki.tagcloud") = | ||
47 | #set ($tagCloudSpace = $doc.space) | ||
48 | |||
49 | {{include document="XWiki.TagCloud"/}} | ||
50 | |||
51 | #end | ||
52 | ))) | ||
53 | ))) | ||
54 | (% class="dashboardright" %) | ||
55 | ((( | ||
56 | ## | ||
57 | ## Right column | ||
58 | ## | ||
59 | (% class="dashboardrightcontent" %) | ||
60 | ((( | ||
61 | ## | ||
62 | ## Recent changes | ||
63 | ## | ||
64 | #if (!$isSpaceDashboard) | ||
65 | = $msg.get("xe.dashboard.wiki.recentchanges") = | ||
66 | #else | ||
67 | = $msg.get("xe.dashboard.space.recentchanges", [$doc.space]) = | ||
68 | ## Set variables to limit recent changes to the current space and 15 items. | ||
69 | #set ($rcSpace = [$doc.space]) | ||
70 | #set ($rcChangesNb = 15) | ||
71 | #end | ||
72 | |||
73 | {{include document="Main.RecentChanges"/}} | ||
74 | |||
75 | ))) | ||
76 | ))) | ||
77 | (% class="dashboardspacer" %) | ||
78 | (((~ ))) | ||
79 | ))) | ||
80 | {{/velocity}} |