From version 1.1 >
edited by Vincent Massol
on 2013/06/27 14:25
To version < 2.1 >
edited by Vincent Massol
on 2013/10/22 12:47
>
Change comment: Import

Summary

Details

Page properties
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
XWiki.GadgetClass[4]
content
... ... @@ -3,6 +3,6 @@
3 3   {{messageSender/}}
4 4  #else
5 5   #set ($queryString = "xredirect=$escapetool.url($xwiki.requestURL)")
6 - (%class='noitems'%)$services.localization.render('xe.activity.messages.error.loginToSendMessage', "path:$doc.getURL('login', $queryString)")
6 + (%class='noitems'%)$services.localization.render('xe.activity.messages.error.loginToSendMessage', ["path:$doc.getURL('login', $queryString)"])
7 7  #end
8 8  {{/velocity}}
This wiki is licensed under a Creative Commons 2.0 license