User Sheet
Log-in
|
XWiki
:
WebHome
>
Users
>
User Sheet
Top Menu
Show
:
Comments
Attachments
History
Information
Stampa
:
Stampa
Anteprima di stampa
Esporta come PDF
Esporta in formato RTF
Esporta come HTML
Esporta in formato XAR
Wiki source code of
User Sheet
Show line numbers
#set($obj = $doc.getObject("XWiki.XWikiUsers")) #if(!$obj) 1 $msg.get("xe.admin.users.sheet") $msg.get("xe.admin.users.applyonusers") #else #if($context.action=="view") <div class="vcard"> #end 1 $msg.get("platform.core.profile.title", [$xwiki.getUserName($doc.fullName, false)]) ##------------------------------------------------------------------ ## Display a menu with common user actions: ## - change password ## - edit the profile ## - change the avatar ## - switch between simple/advanced modes ## Note: This menu is only displayed if the current profile page is ## that of the currently logged user ##------------------------------------------------------------------ #set($i = $context.user.indexOf(":")+1) #set($isMyProfile = ($doc.fullName == $context.user.substring($i)) && ($context.action == "view")) #if($isMyProfile || $xwiki.hasAdminRights()) #if($isMyProfile) #set($msgKeyEditSuffix = ".mine") #end <div class="specialmenu"> ## Check user is not from LDAP. In that case we can’t modify the password has it is stored on LDAP server. #if (!$doc.getObject("XWiki.LDAPProfileClass")) * <img alt="" src="$xwiki.getSkinFile("icons/keys.png")"/> <a href="$doc.getURL("view", "xpage=passwd")">$msg.get("platform.core.profile.changePassword$!{msgKeyEditSuffix}")</a> #end * <img alt="" src="$xwiki.getSkinFile("icons/contact.png")"/> <a href="$doc.getURL("inline")">$msg.get("platform.core.profile.modifyProfile$!{msgKeyEditSuffix}")</a> * <img alt="" src="$xwiki.getSkinFile("icons/changeavatar.png")"/> <a href="$doc.getURL("edit", "xpage=changemyavatar")">$msg.get("platform.core.profile.changePhoto$!{msgKeyEditSuffix}")</a> ## Code to check whether the document’s user with usertype advanced. #set($contextUserType = "$!{doc.getObject(’XWiki.XWikiUsers’).getProperty(’usertype’).value}") #if($contextUserType == ’Advanced’) #set($isContextUserAdvanced = true) #else #set($isContextUserAdvanced = false) #end #if($isContextUserAdvanced) * <img alt="" src="$xwiki.getSkinFile("icons/simpleuser.png")"/> <a href="$doc.getURL("save", "XWiki.XWikiUsers_${obj.number}_usertype=Simple")">$msg.get("platform.core.profile.switchSimple")</a> #else * <img alt="" src="$xwiki.getSkinFile("icons/advanceduser.png")"/> <a href="$doc.getURL("save", "XWiki.XWikiUsers_${obj.number}_usertype=Advanced")">$msg.get("platform.core.profile.switchAdvanced")</a> #end </div> #end #if($obj.getProperty("blogfeed") && $obj.getProperty("blogfeed").getValue() != "") <div class="xwikiuserblog"> {rss:feed=$doc.display("blogfeed", "view", $obj)|count=5} </div> #end #if($obj.getProperty("avatar") && $obj.getProperty("avatar").getValue() != "") #foreach ($attach in $doc.attachmentList) #if($attach.filename == $obj.getProperty("avatar").getValue()) <a href="$doc.getAttachmentURL($attach.filename, "download")" > <img class="photo" id="xwikiuseravatar" alt="$doc.display("first_name", "view", $obj)" src="$doc.getAttachmentURL($attach.filename, "download")"/> </a> #end #end #end ## Please do not insert extra empty lines here (as it affects the validity of the rendered xhtml) <dl id="xwikiuserprofile"> <dt class="label"><label>$msg.get("platform.core.profile.firstname"):</label></dt> <dd#if($context.action=="view") class="given-name"#end>$doc.display("first_name", $obj)</dd> <dt class="label"><label>$msg.get("platform.core.profile.lastname"):</label></dt> <dd#if($context.action=="view") class="family-name"#end>$doc.display("last_name", $obj)</dd> #if(($obj.getProperty("blog") && $obj.getProperty("blog").getValue() != "") || $context.action == "inline") <dt class="label"><label>$msg.get("platform.core.profile.blog"):</label></dt> <dd>$doc.display("blog", $obj)</dd> #end #if(($obj.getProperty("blogfeed") && $obj.getProperty("blogfeed").getValue() != "") || $context.action == "inline") <dt class="label"><label>$msg.get("platform.core.profile.blogFeed"):</label></dt> <dd>$doc.display("blogfeed", $obj)</dd> #end ## For security reasons do not display emails by default ## #if(($obj.getProperty("email") && $obj.getProperty("email").getValue() != "") || $context.action == "inline") ## <dt class="label"><label>$msg.get("platform.core.profile.email"):</label></dt> ## <dd#if($context.action=="view") class="email"#end>#if($action == "inline")$doc.display("email", $obj)#else #set($discard = $doc.display("email", $obj))#obfuscate($discard)#end</dd> ## #end #if(($obj.getProperty("company") && $obj.getProperty("company").getValue() != "") || $context.action == "inline") <dt class="label"><label>$msg.get("platform.core.profile.company"):</label></dt> <dd#if($context.action=="view") class="org"#end>$doc.display("company", $obj)</dd> #end #if(($obj.getProperty("city") && $obj.getProperty("city").getValue() != "") || $context.action == "inline") <dt class="label"><label>$msg.get("platform.core.profile.city"):</label></dt> <dd#if($context.action=="view") class="locality"#end>$doc.display("city", $obj)</dd> #end #if(($obj.getProperty("country") && $obj.getProperty("country").getValue() != "") || $context.action == "inline") <dt class="label"><label>$msg.get("platform.core.profile.country"):</label></dt> <dd#if($context.action=="view") class="country-name"#end>$doc.display("country", $obj)</dd> #end </dl> #if(($obj.getProperty("comment") && $obj.getProperty("comment").getValue().trim() != "") || $context.action == "inline") 1.1 $msg.get("platform.core.profile.about") $doc.display("comment", $obj) #end #if($context.action=="view") </div> #end #end
Search
Quick Links
Wiki Dashboard
Document Index
Blog
Sandbox
My Recent Modifications
dany
|
marco