<div i18n:domain="schooltool">
  <h2 i18n:translate="">Groups</h2>
  <div>
    <h3>
      <tal:block i18n:translate="">Group memberships</tal:block>
      <a class="modify" href="" title="Manage this person's memberships"
         tal:attributes="href string:${context/@@absolute_url}/@@groups.html"
         i18n:attributes="title"
         tal:condition="view/canModify">
        <img tal:attributes="src context/++resource++schooltool.skin.flourish/edit-icon.png"
             alt="Edit"
             i18n:attributes="alt" />
      </a>
    </h3>
    <div class="tree_list groups_tree" tal:condition="view/schoolyears">
      <ul>
        <li tal:repeat="schoolyear view/schoolyears" class="year">
          <a tal:attributes="href schoolyear/obj/@@absolute_url;
                             title schoolyear/obj/title"
             tal:content="schoolyear/obj/title"></a>
          <ul>
            <li tal:repeat="group schoolyear/groups" class="group">
              <a tal:attributes="href group/@@absolute_url;
                               title group/title"
                 tal:content="group/title"
                 class="leaf_url"></a>
            </li>
          </ul>
        </li>
      </ul>
    </div>
    <h3 tal:condition="not: view/schoolyears"
        i18n:translate="">
      The person is not a member of any groups.
    </h3>
  </div>
</div>
