<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="context/prefs_main_template/macros/master"
      i18n:domain="plone">

<body>


  <metal:javascript fill-slot="javascript_head_slot">
    <script src="${portal_url}/++plone++castle/components/manage-archives.js?v=3"></script>
  </metal:javascript>


<metal:main metal:fill-slot="prefs_configlet_main" i18n:domain="plone">

    <a href=""
       id="setup-link"
       tal:attributes="href string:$portal_url/@@overview-controlpanel"
       i18n:translate="">
       Site Setup
    </a>
    <h1 class="documentFirstHeading"
        i18n:translate="">Archive Management</h1>

    <div id="content-core" tal:define="enabled view/enabled">
      <span tal:replace="structure context/@@authenticator/authenticator"/>
      <div class="archives-container pat-autotoc autotabs"
           tal:condition="enabled">
        <nav class="autotoc-nav">
          <a id="autotoc-item-autotoc-0" href="${portal_url}/@@archival-review" class="">Review Future</a>
          <a id="autotoc-item-autotoc-0" href="#"
             class="active">Manage Existing</a>
        </nav>
        <div class="autotoc-section active">
          <p class="discreet">Manage existing archives.</p>

          <div id="archives-container" />
        </div>
      </div>
      <div class="portalMessage warning" tal:condition="not: enabled">
          <strong>Disabled</strong>
          For archives to work properly, you need to enable them and
          <a href="${portal_url}/@@castle-settings">configure AWS S3 storage</a>
           as well as provide a <i>public site url</i> in
          <a href="${portal_url}/@@site-controlpanel">site settings</a>.
      </div>
    </div>

</metal:main>

</body>
</html>
