<div id="more-menu">
  <ul class="menu-list"
      tal:define="
        can_add view/can_add;
        has_create_panel exists:here/@@panel-create-library-section;
      "
      i18n:domain="ploneintranet"
  >
    <li>
      <a class="icon-plus"
         href="${context/absolute_url}/@@switch_theme"
         title="Create a new page or section"
         tal:condition="can_add"
         i18n:attributes="title"
         i18n:translate=""
      >Create a new page or section</a>
    </li>
    <li>
      <a class="icon-squares pat-modal close-panel"
         href="${here/absolute_url}/@@panel-create-library-section#document-content"
         data-pat-modal="class: medium panel"
         tal:condition="python: can_add and has_create_panel"
         i18n:translate=""
      >
        Add a sub section
      </a>
    </li>
    <li>
      <a class="icon-pencil pat-modal close-panel"
         href="${here/absolute_url}/@@panel-edit-library-section#document-content"
         data-pat-modal="class: medium panel"
         tal:condition="view/can_edit"
         i18n:translate=""
      >
        Edit section properties
      </a>
    </li>
    <li>
      <a class="icon-trash pat-modal close-panel"
         href="${here/absolute_url}/@@delete_confirmation#document-content"
         data-pat-modal="class: small panel"
         tal:condition="view/can_delete"
         i18n:translate=""
      >
        Delete this section
      </a>
    </li>
    <li>
      <a class="icon-cut close-panel pat-inject"
         href="${here/absolute_url}/@@object_cut?_authenticator=${context/@@authenticator/token}#global-statusmessage"
         title="Move this section with cut in order to paste it in another section."
         tal:condition="view/can_delete"
         i18n:attributes="title"
         i18n:translate=""
      >
        Cut this section
      </a>
    </li>
    <li>
      <a class="icon-paste"
         href="${here/absolute_url}/@@object_paste?_authenticator=${context/@@authenticator/token}#global-statusmessage"
         tal:condition="python: can_add and request.cookies.get('__cp')"
         i18n:translate=""
      >Paste</a>
    </li>
    <li>
      <a class="icon-download close-panel pat-modal"
         href="${here/absolute_url}/@@panel-download-library-content#document-content"
         title="Download a selection of content"
         data-pat-modal="panel-header-content: none"
         tal:condition="view/can_download_library_content"
         i18n:attributes="title"
         i18n:translate=""
      >
        Download Library content
      </a>
    </li>
  </ul>
</div>
