9: #end
10:
11: 1 $msg.get("userProfile", [$xwiki.getUserName($doc.fullName, false)])
12:
13: ##------------------------------------------------------------------
14: ## Display a menu with common user actions:
15: ## - change password
16: ## - edit the profile
17: ## - change the avatar
18: ## - switch between simple/advanced modes
19: ## Note: This menu is only displayed if the current profile page is
20: ## that of the currently logged user
21: ##------------------------------------------------------------------
22: #set($i = $context.user.indexOf(":")+1)
23: #if(($doc.fullName == $context.user.substring($i)) && ($context.action == "view"))
24:
34: #end
35:
36: #if($obj.getProperty("blogfeed") && $obj.getProperty("blogfeed").getValue() != "")
37:
38: {rss:feed=$doc.display("blogfeed", "view", $obj)|count=5}
39:
40: #end
41:
42: #if($obj.getProperty("avatar") && $obj.getProperty("avatar").getValue() != "")
43: #foreach ($attach in $doc.attachmentList)
44: #if($attach.filename == $obj.getProperty("avatar").getValue())
45:
46:
47:
48: #end
49: #end
50: #end
51: ## Please do not insert extra empty lines here (as it the validity of the rendered xhtml)
52:
53:
54: - $doc.display("first_name", $obj)
55:
56: - $doc.display("last_name", $obj)
57: #if(($obj.getProperty("blog") && $obj.getProperty("blog").getValue() != "") || $context.action == "inline")
58:
59: - $doc.display("blog", $obj)
60: #end
61: #if(($obj.getProperty("blogfeed") && $obj.getProperty("blogfeed").getValue() != "") || $context.action == "inline")
62:
63: - $doc.display("blogfeed", $obj)
64: #end
65: ## For security reasons do not display emails by default
66: ## #if(($obj.getProperty("email") && $obj.getProperty("email").getValue() != "") || $context.action == "inline")
67: ##
68: ## - #if($action == "inline")$doc.display("email", $obj)#else #set($discard = $doc.display("email", $obj))#obfuscate($discard)#end
69: ## #end
70: #if(($obj.getProperty("company") && $obj.getProperty("company").getValue() != "") || $context.action == "inline")
71:
72: - $doc.display("company", $obj)
73: #end
74: #if(($obj.getProperty("city") && $obj.getProperty("city").getValue() != "") || $context.action == "inline")
75:
76: - $doc.display("city", $obj)
77: #end
78: #if(($obj.getProperty("country") && $obj.getProperty("country").getValue() != "") || $context.action == "inline")
79:
80: - $doc.display("country", $obj)
81: #end
82:
83:
84: #if(($obj.getProperty("comment") && $obj.getProperty("comment").getValue().trim() != "") || $context.action == "inline")
85: 1.1 $msg.get("userAbout")
86: $doc.display("comment", $obj)
87: #end
88:
89: #if($context.action=="view")
90:
91: #end
92:
93: #end