Changes for page Dashboard

Last modified by Patrik Mattsson on 2020/03/20

<
From version < 7.1 >
edited by Marius Dumitru Florea
on 2013/07/15
To version < 8.1 >
edited by Vincent Massol
on 2013/10/15
>
Change comment: Import

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mflorea
1 +XWiki.VincentMassol
Content
... ... @@ -1,8 +1,8 @@
1 1  {{velocity}}
2 2  #set($displayDashboard = true)
3 -#if ($context.user != 'XWiki.XWikiGuest')
3 +#if ($xcontext.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($xcontext.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)
... ... @@ -13,13 +13,13 @@
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($xcontext.user).getObjects('XWiki.GadgetClass'))
17 17   #if ($dashboardObjects.size() > 0)
18 - {{dashboard source = "$context.user" /}}
18 + {{dashboard source = "$xcontext.user" /}}
19 19   #set($displayDashboard = false)
20 20   #else
21 21   #set($editDashboardLabel = $services.localization.render('platform.dashboard.wiki.personal.empty.edit'))
22 - #set($editDashboardUrl = $xwiki.getURL($context.user, 'inline', 'category=dashboard'))
22 + #set($editDashboardUrl = $xwiki.getURL($xcontext.user, 'inline', 'category=dashboard'))
23 23   {{info}}{{html}}$services.localization.render('platform.dashboard.wiki.personal.empty', ["<a href='${editDashboardUrl}'>$editDashboardLabel</a>"]){{/html}}{{/info}}
24 24   #set($displayDashboard = true)
25 25   #end

Get Connected