General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
XWikiUserProfileSheet
Search
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/03/02 17:34
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: {{velocity}} 2: #set($obj = $doc.getObject("XWiki.XWikiUsers")) 3: #set($obfuscateEmail = true) 4: #if(!$obj) 5: = $msg.get('xe.admin.users.sheet') = 6: 7: {{info}}$msg.get('xe.admin.users.applyonusers'){{/info}}## 8: #else 9: $doc.use($obj) 10: {{html clean="false" wiki="true"}} 11: #set($username = $xwiki.getUserName($doc.fullName, false)) 12: = $msg.get('platform.core.profile.title', [$username]) = 13: 14: #if($xcontext.action == 'view') 15: <div class="vcard"> 16: <span class="fn hidden">$username</span> 17: #end 18: $xwiki.ssx.use("XWiki.XWikiUserSheet")## 19: <div class="#if($context.action == 'view')half #{else}full #{end}column"> 20: <div class="userInfo"> 21: #if($xcontext.action == 'view' && $hasEdit) 22: <div class="editProfileCategory"><a href="$doc.getURL('inline', 'category=profile')"><span class="hidden">$msg.get('platform.core.profile.category.profile.edit')</span></a></div> 23: #end 24: ## Please do not insert extra empty lines here (as it affects the validity of the rendered xhtml) 25: <h1>$msg.get('platform.core.profile.section.personal')</h1> 26: <dl> 27: <dt class="label"><label>$msg.get('platform.core.profile.firstname')</label></dt> 28: <dd #if($xcontext.action == 'view')class="given-name"#end>$doc.display('first_name')</dd> 29: <dt class="label"><label>$msg.get('platform.core.profile.lastname')</label></dt> 30: <dd #if($xcontext.action == 'view')class="family-name"#end>$doc.display('last_name')</dd> 31: #if(($obj.getProperty('company') && $obj.getProperty('company').getValue() != '') || $xcontext.action != 'view') 32: <dt class="label"><label>$msg.get('platform.core.profile.company')</label></dt> 33: <dd #if($xcontext.action == 'view')class="org"#end>$doc.display('company')</dd> 34: #end 35: #if(($obj.getProperty('comment') && $obj.getProperty('comment').getValue() != '') || $xcontext.action != 'view') 36: <dt class="label"><label>$msg.get('platform.core.profile.about')</label></dt> 37: <dd #if($xcontext.action == 'view')class="note"#end>$doc.display('comment')</dd> 38: #end 39: </dl> 40: <h1>$msg.get('platform.core.profile.section.contact')</h1> 41: <dl> 42: <dt class="label"><label>$msg.get('platform.core.profile.email')</label></dt> 43: <dd #if($xcontext.action=="view")class="email"#end>#if($xcontext.action != 'view' || !$obfuscateEmail)$doc.display('email')#else $doc.display('email').replaceAll('@.*', '@ ~-~-~-~-~-~-')#end</dd> 44: <dt class="label"><label>$msg.get('platform.core.profile.phone')</label></dt> 45: <dd #if($xcontext.action == 'view')class="tel"#end>$doc.display('phone')</dd> 46: <dt class="label"><label>$msg.get('platform.core.profile.address')</label></dt> 47: <dd #if($xcontext.action == 'view')class="adr"#end>$doc.display('address')</dd> 48: </dl> 49: #set($hasBlog = ($obj.getProperty('blog') && $obj.getProperty('blog').getValue() != '')) 50: #set($hasBlogFeed = ($obj.getProperty('blogfeed') && $obj.getProperty('blogfeed').getValue() != '')) 51: #if($hasBlog || $hasBlogFeed || $xcontext.action != 'view') 52: <h1>$msg.get('platform.core.profile.section.links')</h1> 53: <dl> 54: #if($hasBlog || $xcontext.action != 'view') 55: <dt class="label"><label>$msg.get('platform.core.profile.blog')</label></dt> 56: <dd>$doc.display('blog')</dd> 57: #end 58: #if($hasBlogFeed || $xcontext.action != 'view') 59: <dt class="label"><label>$msg.get('platform.core.profile.blogFeed')</label></dt> 60: <dd>$doc.display('blogfeed')</dd> 61: #end 62: </dl> 63: #end 64: </div> 65: </div> 66: #if ($xcontext.action == 'view') 67: <div class="half column"> 68: <div class="userRecentChanges"> 69: <h1>$msg.get('platform.core.profile.section.activity')</h1> 70: {{/html}} 71: 72: {{activity authors="${doc.fullName}" /}} 73: 74: {{html clean="false"}} 75: </div> 76: </div> 77: #end 78: <div class="clearfloats"> </div> 79: #if($xcontext.action == 'view') 80: ## Close the vcard 81: </div> 82: #end 83: {{/html}}## 84: #end 85: {{/velocity}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox