General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
XWikiUserProfileSheet
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
XWikiUsers
»
XWikiUserSheet
»
XWikiUserProfileSheet
Wiki source code of
XWikiUserProfileSheet
Last modified by
Administrator
on 2011/11/06 20:09
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity}} #set($obj = $doc.getObject("XWiki.XWikiUsers")) ## Allow $obfuscateEmail to be set in some other place. #if("$!obfuscateEmail" == '') #set($obfuscateEmail = true) #end #if(!$obj) = $msg.get('xe.admin.users.sheet') = {{info}}$msg.get('xe.admin.users.applyonusers'){{/info}}## #else $doc.use($obj) {{html clean="false" wiki="true"}} #set($username = $xwiki.getUserName($doc.fullName, false)) = $msg.get('platform.core.profile.title', [$username]) = #if($xcontext.action == 'view') <div class="vcard"> <span class="fn hidden">$username</span> #end $xwiki.ssx.use("XWiki.XWikiUserSheet")## <div class="#if($context.action == 'view')half #{else}full #{end}column"> <div class="userInfo"> #if($xcontext.action == 'view' && $hasEdit) <div class="editProfileCategory"><a href="$doc.getURL('inline', 'category=profile')"><span class="hidden">$msg.get('platform.core.profile.category.profile.edit')</span></a></div> #end ## Please do not insert extra empty lines here (as it affects the validity of the rendered xhtml) <h1>$msg.get('platform.core.profile.section.personal')</h1> <dl> <dt class="label"><label>$msg.get('platform.core.profile.firstname')</label></dt> <dd #if($xcontext.action == 'view')class="given-name"#end>$doc.display('first_name')</dd> <dt class="label"><label>$msg.get('platform.core.profile.lastname')</label></dt> <dd #if($xcontext.action == 'view')class="family-name"#end>$doc.display('last_name')</dd> #if(($obj.getProperty('company') && $obj.getProperty('company').getValue() != '') || $xcontext.action != 'view') <dt class="label"><label>$msg.get('platform.core.profile.company')</label></dt> <dd #if($xcontext.action == 'view')class="org"#end>$doc.display('company')</dd> #end #if(($obj.getProperty('comment') && $obj.getProperty('comment').getValue() != '') || $xcontext.action != 'view') <dt class="label"><label>$msg.get('platform.core.profile.about')</label></dt> <dd #if($xcontext.action == 'view')class="note"#end>$doc.display('comment')</dd> #end </dl> <h1>$msg.get('platform.core.profile.section.contact')</h1> <dl> <dt class="label"><label>$msg.get('platform.core.profile.email')</label></dt> <dd #if($xcontext.action=="view")class="email"#end>#if($xcontext.action != 'view' || !$obfuscateEmail)$doc.display('email')#else $doc.display('email').replaceAll('@.*', '@ ~-~-~-~-~-~-')#end</dd> <dt class="label"><label>$msg.get('platform.core.profile.phone')</label></dt> <dd #if($xcontext.action == 'view')class="tel"#end>$doc.display('phone')</dd> <dt class="label"><label>$msg.get('platform.core.profile.address')</label></dt> <dd #if($xcontext.action == 'view')class="adr"#end>$doc.display('address')</dd> </dl> #set($hasBlog = ($obj.getProperty('blog') && $obj.getProperty('blog').getValue() != '')) #set($hasBlogFeed = ($obj.getProperty('blogfeed') && $obj.getProperty('blogfeed').getValue() != '')) #if($hasBlog || $hasBlogFeed || $xcontext.action != 'view') <h1>$msg.get('platform.core.profile.section.links')</h1> <dl> #if($hasBlog || $xcontext.action != 'view') <dt class="label"><label>$msg.get('platform.core.profile.blog')</label></dt> <dd>$doc.display('blog')</dd> #end #if($hasBlogFeed || $xcontext.action != 'view') <dt class="label"><label>$msg.get('platform.core.profile.blogFeed')</label></dt> <dd>$doc.display('blogfeed')</dd> #end </dl> #end </div> </div> #if ($xcontext.action == 'view') <div class="half column"> <div class="userRecentChanges"> #if ($context.user == $doc.fullName) <h1>$msg.get('platform.core.profile.section.activity')</h1> #else <h1>$msg.get('platform.core.profile.section.activityof', [$xwiki.getUserName($doc.fullName, false)])</h1> #if ($hasWatch) $xwiki.ssx.use('XWiki.XWikiUserProfileSheet')## <div class="activity-follow"> #set ($xredirect = $doc.getURL($context.action, $request.queryString)) #if ($xwiki.watchlist.isUserWatched(${doc.prefixedFullName})) <span class="following">$msg.get('xe.activity.messages.following')</span> <a class="action unfollow" href="$doc.getURL('view', "xpage=watch&do=removeuser&xredirect=${escapetool.url($xredirect)}")">$msg.get('xe.activity.messages.unfollow')</a> #else <a class="action follow" href="$doc.getURL('view', "xpage=watch&do=adduser&xredirect=${escapetool.url($xredirect)}")">$msg.get('xe.activity.messages.follow')</a> #end </div> #end #end {{/html}} {{activity authors="${doc.fullName},${doc.prefixedFullName}" /}} {{html clean="false"}} </div> </div> #end <div class="clearfloats"> </div> #if($xcontext.action == 'view') ## Close the vcard </div> #end {{/html}}## #end {{/velocity}}