Code source wiki de Tableau de bord

Modifié par Jean-Vincent Drean le 2009/09/09 00:00

Afficher les derniers auteurs
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 (% id="dashboard" %)
14 (((
15 (% id="dashboardleft" %)
16 (((
17 ##
18 ## Left column.
19 ##
20 (% id="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 $blacklistedSpaces)
43 {{/html}}
44
45 = $msg.get("xe.dashboard.wiki.tagcloud") =
46 #set ($tagCloudSpace = $doc.space)
47
48 {{include document="XWiki.TagCloud"/}}
49
50 #end
51 )))
52 )))
53 (% id="dashboardright" %)
54 (((
55 ##
56 ## Right column
57 ##
58 (% id="dashboardrightcontent" %)
59 (((
60 ##
61 ## Recent changes
62 ##
63 #if (!$isSpaceDashboard)
64 = $msg.get("xe.dashboard.wiki.recentchanges") =
65 #else
66 = $msg.get("xe.dashboard.space.recentchanges", [$doc.space]) =
67 ## Set variables to limit recent changes to the current space and 15 items.
68 #set ($rcSpace = [$doc.space])
69 #set ($rcChangesNb = 15)
70 #end
71
72 {{include document="Main.RecentChanges"/}}
73
74 )))
75 )))
76 (% id="dashboardspacer" %)
77 (((~ )))
78 )))
79 {{/velocity}}
#getBlogDocument($space $blogDoc)