Changes for page Dashboard

Last modified by Patrik Mattsson on 2020/03/20

From version 4.1
edited by Thomas Mortagne
on 2012/03/02
Change comment: Imported from XAR
To version 5.1
edited by Vincent Massol
on 2012/10/16
Change comment: Imported from XAR

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -$msg.get("platform.dashboard.wiki")
1 +$msg.get('platform.dashboard.wiki')
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ThomasMortagne
1 +XWiki.VincentMassol
Default language
... ... @@ -1,1 +1,0 @@
1 -en
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.0
1 +XWiki 2.1
Hidden
... ... @@ -1,1 +1,1 @@
1 -false
1 +true
Content
... ... @@ -1,25 +1,25 @@
1 1  {{velocity}}
2 2  #set($displayDashboard = true)
3 -#if ($context.user != "XWiki.XWikiGuest")
3 +#if ($context.user != 'XWiki.XWikiGuest')
4 4   ## get the preferences of the current user
5 - #set($userDbPrefs = $xwiki.getDocument($context.user).getObject("Dashboard.UserDashboardPreferencesClass"))
5 + #set($userDbPrefs = $xwiki.getDocument($context.user).getObject('Dashboard.UserDashboardPreferencesClass'))
6 6   #if ($userDbPrefs)
7 7   ## if the object exists, use the object value
8 8   #set($prefValue = $userDbPrefs.getProperty('displayOnMainPage').value)
9 9   #else
10 10   ## if the object does not exist, use the default value of the property in the class
11 - #set($userPrefClass = $xwiki.getClass("Dashboard.UserDashboardPreferencesClass"))
11 + #set($userPrefClass = $xwiki.getClass('Dashboard.UserDashboardPreferencesClass'))
12 12   #set($displayOnMainPageProp = $userPrefClass.get('displayOnMainPage'))
13 13   #set($prefValue = $displayOnMainPageProp.getProperty('defaultValue').value)
14 14   #end
15 15   #if ($prefValue && $prefValue > 0)
16 - #set($dashboardObjects = $xwiki.getDocument($context.user).getObjects("XWiki.GadgetClass"))
16 + #set($dashboardObjects = $xwiki.getDocument($context.user).getObjects('XWiki.GadgetClass'))
17 17   #if ($dashboardObjects.size() > 0)
18 18   {{dashboard source = "$context.user" /}}
19 19   #set($displayDashboard = false)
20 20   #else
21 21   #set($editDashboardLabel = $msg.get('platform.dashboard.wiki.personal.empty.edit'))
22 - #set($editDashboardUrl = $xwiki.getURL($context.user, 'inline', "category=dashboard"))
22 + #set($editDashboardUrl = $xwiki.getURL($context.user, 'inline', 'category=dashboard'))
23 23   {{info}}{{html}}$msg.get('platform.dashboard.wiki.personal.empty', ["<a href='${editDashboardUrl}'>$editDashboardLabel</a>"]){{/html}}{{/info}}
24 24   #set($displayDashboard = true)
25 25   #end
XWiki.GadgetClass[0]
title
... ... @@ -1,1 +1,1 @@
1 -$msg.get("platform.dashboard.wiki.spaces")
1 +$msg.get('platform.dashboard.wiki.spaces')
XWiki.GadgetClass[1]
title
... ... @@ -1,1 +1,1 @@
1 -$msg.get("platform.dashboard.wiki.tagcloud")
1 +$msg.get('platform.dashboard.wiki.tagcloud')
XWiki.GadgetClass[2]
position
... ... @@ -1,1 +1,1 @@
1 -2, 1
1 +2, 2
title
... ... @@ -1,1 +1,1 @@
1 -$msg.get("platform.dashboard.wiki.activity")
1 +$msg.get('platform.dashboard.wiki.activity')
XWiki.GadgetClass[3]
title
... ... @@ -1,1 +1,1 @@
1 -$msg.get("platform.dashboard.wiki.welcome")
1 +$msg.get('platform.dashboard.wiki.welcome')
XWiki.GadgetClass[4]
content
... ... @@ -1,0 +1,8 @@
1 +{{velocity}}
2 +#if (!$isGuest)
3 + {{messageSender/}}
4 +#else
5 + #set ($queryString = "xredirect=$escapetool.url($xwiki.requestURL)")
6 + (%class='noitems'%)$msg.get('xe.activity.messages.error.loginToSendMessage', "path:$doc.getURL('login', $queryString)")
7 +#end
8 +{{/velocity}}
position
... ... @@ -1,0 +1,1 @@
1 +2, 1
title
... ... @@ -1,0 +1,1 @@
1 +$msg.get('platform.dashboard.wiki.messageSender')
XWiki.UIExtensionClass[0]
Extension Point ID
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.platform.panels.Applications
Extension ID
... ... @@ -1,0 +1,1 @@
1 +platform.panels.dashboardApplication
Extension Parameters
... ... @@ -1,0 +1,3 @@
1 +label=$msg.get('xe.panels.quicklinks.dashboard')
2 +target=Dashboard.WebHome
3 +icon=icon:application_view_tile

Get Connected