Toggle navigation
Log-in
myITGuide
Page Index
User Index
Application Index
Global
Wiki Index
Home
Blog
Links
Database
SQL Server
Cassandra
BigData
PostgreSQL
Redis
MariaDB
MongoDB
Tools
T-SQL
Powershell
Python
Scala
R
Jupyter
Java
Solution
Streaming
Spark
Storm
Search
Solr
ElasticSearch
Kafka
Puppet
Kibana
Docker
Kubernetes
OS
Windows
Linux
About
About Us
Email Us
Dashboard
Wiki source code of
Dashboard
Last modified by superadmin on 2016/12/20 10:05
Copy
Export
Print preview
View Source
Children
Content
Comments
Information
×
Export
Office Formats
Export as PDF
Other Formats
Select the pages to export:
select all
/
none
Export as HTML
Show line numbers
{{velocity}} #set($displayDashboard = true) #if ($xcontext.user != 'XWiki.XWikiGuest') ## get the preferences of the current user #set($userDbPrefs = $xwiki.getDocument($xcontext.user).getObject('Dashboard.UserDashboardPreferencesClass')) #if ($userDbPrefs) ## if the object exists, use the object value #set($prefValue = $userDbPrefs.getProperty('displayOnMainPage').value) #else ## if the object does not exist, use the default value of the property in the class #set($userPrefClass = $xwiki.getClass('Dashboard.UserDashboardPreferencesClass')) #set($displayOnMainPageProp = $userPrefClass.get('displayOnMainPage')) #set($prefValue = $displayOnMainPageProp.getProperty('defaultValue').value) #end #if ($prefValue && $prefValue > 0) #set($dashboardObjects = $xwiki.getDocument($xcontext.user).getObjects('XWiki.GadgetClass')) #if ($dashboardObjects.size() > 0) {{dashboard source = "$xcontext.user" /}} #set($displayDashboard = false) #else #set($editDashboardLabel = $services.localization.render('platform.dashboard.wiki.personal.empty.edit')) #set($editDashboardUrl = $xwiki.getURL($xcontext.user, 'inline', 'category=dashboard')) {{info}}{{html}}$services.localization.render('platform.dashboard.wiki.personal.empty', ["<a href='${editDashboardUrl}'>$editDashboardLabel</a>"]){{/html}}{{/info}} #set($displayDashboard = true) #end #end #end #if($displayDashboard) {{dashboard/}} #end {{/velocity}}