<tal:block i18n:domain="schooltool"
           tal:define="url view/context/@@absolute_url;
                       actions view/context/@@view_get_menu/schooltool_actions">

<div class="portlet">
  <h4 tal:content="view/title">Actions</h4>
  <ul> <!-- old-style menu actions (obsolete) -->
    <li tal:repeat="view actions">
      <a tal:attributes="href
                   string:${url}/${view/action}"
         tal:content="view/title" />
    </li>
  </ul>
  <ul> <!-- new-style viewlet actions -->
    <tal:block
        repeat="viewlet options/viewlets"
        replace="structure viewlet/render" />
  </ul>
  <tal:block tal:repeat="target view/subItems">
    <div tal:replace="structure provider:schooltool.Actions" />
  </tal:block>
</div>
</tal:block>
