Log-in
en
General Actions:
Wiki
▼
:
Document Index
Space:
Main
▼
:
Document Index
Page:
Dashboard
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Telema Wiki
»
Dashboard
Wiki source code of
Dashboard
Last modified by Admin on 2010/11/01 23:53
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: {{spaces /}} 29: 30: = $msg.get("xe.dashboard.wiki.tagcloud") = 31: 32: {{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: {{tagcloud space="$tagCloudSpace" /}} 61: 62: #end 63: ))) 64: ))) 65: (% class="dashboardright" %) 66: ((( 67: ## 68: ## Right column 69: ## 70: (% class="dashboardrightcontent" %) 71: ((( 72: ## 73: ## Recent activity 74: ## 75: ## reset the two variables to make sure that whatever was on the context, the correct values are sent on both the cases possible here 76: #set($rcSpace = $util.null) 77: #set($rcChangesNb = $util.null) 78: #if (!$isSpaceDashboard) 79: = $msg.get("xe.dashboard.wiki.activity") = 80: #else 81: = $msg.get("xe.dashboard.space.activity", [$doc.space]) = 82: ## Set variables to limit recent activity to the current space and 15 items. 83: #set ($aSpace = $doc.space) 84: #end 85: 86: {{activity spaces="$!aSpace" /}} 87: 88: ))) 89: ))) 90: (% class="dashboardspacer" %) 91: (((~ ))) 92: ))) 93: {{/velocity}}