<metal:block define-macro="tab_menu"
             i18n:domain="schooltool">
  <tal:block define="menu view/getMenu | nothing;" condition="menu">
  <div style="margin-bottom: 5px">
    <tal:block repeat="menuitem menu">
      <a tal:content="string:${menuitem/title}"
        tal:attributes="
          href string:${menuitem/action};
          title menuitem/description;
          id python: menuitem['selected'] and 'selected' or None"
        />
      <tal:block condition="not: repeat/menuitem/end">-</tal:block>
    </tal:block>
  </div>
  </tal:block>
</metal:block>
