<html xmlns:py="http://genshi.edgewall.org/"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  py:strip="">
  
  <py:def function="page_title">${c.user_dict['display_name']} - User</py:def>
  <py:def function="page_heading">${c.user_dict['display_name']}</py:def>
  <py:def function="body_class">user-view</py:def>
  
  <py:match path="primarysidebar">
    <div class="gravatar">
      ${h.gravatar(c.user_dict['email_hash'],120)}
    </div>
    <li class="widget-container widget_text" py:if="not c.hide_welcome_message">
      <h3>Activity</h3>
      <ul>
        <li><strong>Number of edits:</strong> ${c.user_dict['number_of_edits']}</li>
        <li><strong>Number of datasets administered:</strong> ${c.user_dict['number_administered_packages']}</li>
      </ul>
    </li>
  </py:match>

  <div py:match="content">
    <py:if test="c.is_myself">
      <h3>My Account</h3>

      <p>You are logged in.</p>
      <ul>
        <li>Your API key is: ${c.user_dict['apikey']}</li>
      </ul>
    </py:if>

    <div class="about">
      ${c.about_formatted}
    </div>

    <div class="changes">
      <h3>Recent changes</h3>
      ${revision_list_from_dict(c.user_dict['activity'])}
    </div>
  </div>

  <xi:include href="layout.html" />
</html>
