<nav class="canvas-subnav pat-navigation"
     tal:define="
       in_publisher request/in_publisher | nothing;
       injection_element python:in_publisher and 'magazine-content' or 'portal-content';
     "
     i18n:domain="ploneintranet"
>

  <a class="pat-inject ${section/css_class}"
     href="${section/absolute_url}"
     data-pat-inject="source: #${injection_element}; target: #${injection_element}"
     tal:define="
       sections python:view.sections('visible');
     "
     tal:repeat="section sections"
  >${section/title}</a>

  <div class="pat-context-menu pat-collapsible closed align-right ${python:'current' if view.in_other_section else None}"
       id="more-sections-menu"
       data-pat-collapsible="close-trigger: .pat-context-menu:not(#more-sections-menu),.close-menu,.nav-item"
       tal:define="
         sections python:view.sections('invisible');
       "
       tal:condition="sections"
  >
    <strong class="context-menu-label menu-trigger collapsible-closed"
            i18n:translate=""
    >Other</strong>
    <div class="panel-content"
         style="display: none;"
    >
      <ul class="links">
        <li tal:repeat="section sections">
          <a class="pat-inject nav-item ${section/css_class}"
             href="${section/absolute_url}"
             data-pat-inject="source: #${injection_element}; target: #${injection_element}"
          >
                        ${section/title}
          </a>
        </li>
      </ul>
    </div>
  </div>

</nav>
