<div i18n:domain="plone" id="portal-personaltools-wrapper">

  <tal:block condition="not: view/anonymous">
    <a class="pat-avatar pat-tooltip"
       data-pat-tooltip="position-list: tr; position-policy: force; trigger: click; source: content;"
       href="#portal-personaltools-menu"
       id="user-avatar">
      <img src="${view/avatar_url}" title="${view/user_name}" />
    </a>
    <div id="portal-personaltools-menu"
         tal:condition="python:view.user_actions and not view.anonymous"
         style="display:none">
        <metal:menu use-macro="here/personal-menu.html/main" />
    </div>
  </tal:block>

</div>
