General Actions:
Log-in
Wiki:
Courses
▼
:
Document Index
»
Space:
Main
▼
:
Document Index
»
Page:
Dashboard
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to L3D's XWiki for Courses
»
Dashboard
Wiki source code of
Dashboard
Last modified by
Administrator
on 2010/05/15 13:25
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
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($limit = 100)## Maximum number of documents we display in the space dashboard list 41: #set($docNames = $xwiki.searchDocuments("where doc.space='${doc.space}' order by doc.creationDate desc", $limit, 0)) 42: {{html}} 43: #displayDocumentList($docNames false []) 44: ## Note: we pass an empty blacklistedSpaces list since we are used as a space dashboard, not a global dashboard 45: {{/html}} 46: 47: #if($docNames.size() == $limit) 48: #set($docCount = $xwiki.countDocuments("where doc.space='${doc.space}'")) 49: #set($remaining = $mathtool.sub($docCount, $limit)) 50: #if($remaining > 0) 51: (% class="documentListMore" %) ((( 52: // $msg.get('xe.dashboard.space.remainingDocumentsInSpace', [$remaining, $doc.space]) 53: [[$msg.get('xe.dashboard.space.visitSpaceIndex')>>Main.SpaceIndex?space=$doc.space]] // 54: ))) 55: #end 56: #end 57: = $msg.get("xe.dashboard.wiki.tagcloud") = 58: #set ($tagCloudSpace = $doc.space) 59: 60: {{include document="XWiki.TagCloud"/}} 61: 62: #end 63: ))) 64: ))) 65: (% class="dashboardright" %) 66: ((( 67: ## 68: ## Right column 69: ## 70: (% class="dashboardrightcontent" %) 71: ((( 72: ## 73: ## Recent changes 74: ## 75: #if (!$isSpaceDashboard) 76: = $msg.get("xe.dashboard.wiki.recentchanges") = 77: #else 78: = $msg.get("xe.dashboard.space.recentchanges", [$doc.space]) = 79: ## Set variables to limit recent changes to the current space and 15 items. 80: #set ($rcSpace = [$doc.space]) 81: #set ($rcChangesNb = 15) 82: #end 83: 84: {{include document="Main.RecentChanges"/}} 85: 86: ))) 87: ))) 88: (% class="dashboardspacer" %) 89: (((~ ))) 90: ))) 91: {{/velocity}}
Welcome
Welcome to this XWiki!
Quick Links
DSSF 2008
DCNM 2009
HCCF 2010
Document Index
Sandbox
My Recent Modifications
ASSIGNMENTNAME