#end
1 $msg.get("userProfile", [$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)
#if(($doc.fullName == $context.user.substring($i)) && ($context.action == "view"))
#end
#if($obj.getProperty("blogfeed") && $obj.getProperty("blogfeed").getValue() != "")
{rss:feed=$doc.display("blogfeed", "view", $obj)|count=5}
#end
#if($obj.getProperty("avatar") && $obj.getProperty("avatar").getValue() != "")
#foreach ($attach in $doc.attachmentList)
#if($attach.filename == $obj.getProperty("avatar").getValue())
#end
#end
#end
## Please do not insert extra empty lines here (as it the validity of the rendered xhtml)
- $doc.display("first_name", $obj)
- $doc.display("last_name", $obj)
#if(($obj.getProperty("blog") && $obj.getProperty("blog").getValue() != "") || $context.action == "inline")
- $doc.display("blog", $obj)
#end
#if(($obj.getProperty("blogfeed") && $obj.getProperty("blogfeed").getValue() != "") || $context.action == "inline")
- $doc.display("blogfeed", $obj)
#end
## For security reasons do not display emails by default
## #if(($obj.getProperty("email") && $obj.getProperty("email").getValue() != "") || $context.action == "inline")
##
## - #if($action == "inline")$doc.display("email", $obj)#else #set($discard = $doc.display("email", $obj))#obfuscate($discard)#end
## #end
#if(($obj.getProperty("company") && $obj.getProperty("company").getValue() != "") || $context.action == "inline")
- $doc.display("company", $obj)
#end
#if(($obj.getProperty("city") && $obj.getProperty("city").getValue() != "") || $context.action == "inline")
- $doc.display("city", $obj)
#end
#if(($obj.getProperty("country") && $obj.getProperty("country").getValue() != "") || $context.action == "inline")
- $doc.display("country", $obj)
#end
#if(($obj.getProperty("comment") && $obj.getProperty("comment").getValue().trim() != "") || $context.action == "inline")
1.1 $msg.get("userAbout")
$doc.display("comment", $obj)
#end
#if($context.action=="view")
#end
#end