Wiki source code of Dashboard

Last modified by XWikiGuest on 2018/10/19 01:39

Show last authors
1 [[Hapkido Folks>>Hapkido Folks||rel="__blank" title="People in Hapkido, or who have been in Hapkido"]]{{velocity wiki="true"}} ##
2 ## XWiki Dashboard
3 ##
4 ## This dashboard can be used for both wikis (Main.WebHome)
5 ## and spaces (*.WebHome).
6 ##
7 $xwiki.ssx.use('Main.Dashboard')##
8 #set ($isSpaceDashboard = false)
9 #if ($doc.space != "Main")
10 #set ($isSpaceDashboard = true)
11 #end
12 (% class="dashboard" %)
13 (((
14 (% class="dashboardleft" %)
15 (((
16 ##
17 ## Left column.
18 ##
19 (% class="dashboardleftcontent" %)
20 (((
21 #if (!$isSpaceDashboard)
22 ##
23 ## Wiki spaces and tags
24 ##
25 = $msg.get("xe.dashboard.wiki.spaces") =
26
27 {{include document="Main.Spaces"/}}
28
29 = $msg.get("xe.dashboard.wiki.tagcloud") =
30
31 {{include document="XWiki.TagCloud"/}}
32
33 #else
34 ##
35 ## Space documents and tags
36 ##
37 = $msg.get("xe.dashboard.space.documents", [$doc.space]) =
38
39 #set($limit = 100)## Maximum number of documents we display in the space dashboard list
40 #set($docNames = $xwiki.searchDocuments("where doc.space='${doc.space}' order by doc.creationDate desc", $limit, 0))
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 #if($docNames.size() == $limit)
47 #set($docCount = $xwiki.countDocuments("where doc.space='${doc.space}'"))
48 #set($remaining = $mathtool.sub($docCount, $limit))
49 #if($remaining > 0)
50 (% class="documentListMore" %) (((
51 // $msg.get('xe.dashboard.space.remainingDocumentsInSpace', [$remaining, $doc.space])
52 [[$msg.get('xe.dashboard.space.visitSpaceIndex')>>Main.SpaceIndex?space=$doc.space]] //
53 )))
54 #end
55 #end
56 = $msg.get("xe.dashboard.wiki.tagcloud") =
57 #set ($tagCloudSpace = $doc.space)
58
59 {{include document="XWiki.TagCloud"/}}
60
61 #end
62 )))
63 )))
64 (% class="dashboardright" %)
65 (((
66 ##
67 ## Right column
68 ##
69 (% class="dashboardrightcontent" %)
70 (((
71 ##
72 ## Recent changes
73 ##
74 #if (!$isSpaceDashboard)
75 = $msg.get("xe.dashboard.wiki.recentchanges") =
76 #else
77 = $msg.get("xe.dashboard.space.recentchanges", [$doc.space]) =
78 ## Set variables to limit recent changes to the current space and 15 items.
79 #set ($rcSpace = [$doc.space])
80 #set ($rcChangesNb = 15)
81 #end
82
83 {{include document="Main.RecentChanges"/}}
84
85 )))
86 )))
87 (% class="dashboardspacer" %)
88 (((~ )))
89 ))){{/velocity}}