<div class="profile-macro">
    <div class="vcard">
        #userLogoBlock($user.name)
        <div class="values">
        <h4>#usernameLink($user.name)</h4>
        #if ($emailvisible)
            #if ($email == $user.email)<a href="mailto:$email" title="$action.getText("person.email", [ $generalUtil.htmlEncode($user.fullName) ])" class="email">$email</a>
            #else $email #end
        #end
        </div>
        #if ($mode != "people-directory" && $userStatusPluginEnabled && $stringUtils.isNotBlank($userStatus.status))
            <span class="user-status #if($viewingMyProfile)current-user-latest-status#end">#trim()
                <a href="$req.contextPath$userStatus.urlPath"><img src="$req.contextPath/images/icons/quotes.png"/></a>
                <span class="status-text">$renderedStatus</span>
                <a href="$req.contextPath$userStatus.urlPath"><img src="$req.contextPath/images/icons/quotes_flipped.png"/></a>
            #end</span>
        #end
    </div>
#if ($mode != "hover" && $mode != "people-directory")
    <table class="profile-info profile-full">
    #foreach($group in $userDetailsManager.profileGroups)
        <tbody>
        #foreach ($key in $userDetailsManager.getProfileKeys($group))
            #set($info = '')
            #set($info = $userDetailsManager.getStringProperty($user, $key))
            #if ($info != '')
                <tr>
                    <th>$action.getText("confluence.user.profile.$key"):</th>
                    <td>$inlineWikiStyleRenderer.render($info)</td>
                </tr>
            #end
        #end
        </tbody>
    #end
    </table>
#end
</div>
