Repository: couchdb-www
Updated Branches:
  refs/heads/asf-site baa7f9312 -> a9f08a15f


Announce CouchDB 2.1.0


Project: http://git-wip-us.apache.org/repos/asf/couchdb-www/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-www/commit/a9f08a15
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-www/tree/a9f08a15
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-www/diff/a9f08a15

Branch: refs/heads/asf-site
Commit: a9f08a15f1852f6ab4a12da1dca5b9d3bc0d5af1
Parents: baa7f93
Author: Joan Touzet <[email protected]>
Authored: Mon Aug 7 14:04:41 2017 -0400
Committer: Joan Touzet <[email protected]>
Committed: Mon Aug 7 14:04:41 2017 -0400

----------------------------------------------------------------------
 developer-preview/2.0/index.html | 180 -----------------------------
 index.html                       |  64 +++++------
 release-candidate/2.0/index.html | 209 ----------------------------------
 3 files changed, 32 insertions(+), 421 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-www/blob/a9f08a15/developer-preview/2.0/index.html
----------------------------------------------------------------------
diff --git a/developer-preview/2.0/index.html b/developer-preview/2.0/index.html
deleted file mode 100644
index 7863e04..0000000
--- a/developer-preview/2.0/index.html
+++ /dev/null
@@ -1,180 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-
-<head>
-
-<meta charset="utf-8">
-
-<meta name="viewport" content="user-scalable=no, initial-scale=1, 
maximum-scale=1, minimum-scale=1, width=device-width">
-
-<link rel="canonical" href="http://couchdb.apache.org/"/>
-
-<title>Apache CouchDB</title>
-
-<!--
-
-Thanks to Yohei Shimomae and the Apache Cordova team for the original design.
-
-Thanks to Patrick Hoesly for his original artwork:
-
-    http://www.flickr.com/photos/zooboing/4715048673/
-
-This fabulous linen texture was integrated into the site design.
-
--->
-
-<link rel="stylesheet" type="text/css" href="../../style/master.css">
-
-<script src="../../script/smooth.js" type="text/javascript"></script>
-
-  <style type="text/css" media="screen">
-  p {
-    line-spacing:1.3em;
-    margin-top: 1.3em;
-    margin-bottom: 1.3em;
-  }
-  ul {
-    margin-left:2em;
-  }
-  </style>
-
-</head>
-
-<body>
-
-  <a class="scroll-point pt-top" id="top"></a>
-
-  <div id="header">
-
-    <div class="wrap">
-
-      <a class="logo" href="/"></a>
-
-      <div class="menu">
-        <a href="#about">About</a>
-        <a href="http://docs.couchdb.org";>Docs</a>
-        <a href="#contribute">Contribute</a>
-        <a href="#mailing-lists">Mailing Lists</a>
-        <a href="#download">Download</a>
-        <a href="#more">More&hellip;</a>
-      </div>
-
-      <form class="menu-dropdown">
-        <select onchange="location = this.options[this.selectedIndex].value;">
-          <option value="#about">About</option>
-          <option value="#contribute">Contribute</option>
-          <option value="#mailing-lists">Mailing Lists</option>
-          <option value="#download">Download</option>
-          <option value="#more">More&hellip;</option>
-        </select>
-      </form>
-
-    </div>
-
-    <div class="shadow"></div>
-
-  </div>
-
-  <div class="header-placeholder"></div>
-
-  <a class="scroll-point pt-about" id="about"></a>
-
-  <div class="wrap feature">
-
-    <h2 class="icon icon-about">CouchDB 2.0 Developer Preview</h2>
-
-    <p> This is an early, still in-development version of CouchDB. It is a 
significant departure from the 1.x series and will be foundation of the 2.0 
version and beyond.
-    
-    <p> The target audience of this release are people who use CouchDB today 
and want to see what the future brings.
-
-    <p> The CouchDB community is requesting feedback on the following areas:
-      <ul>
-        <li>New Features</li>
-        <li>Compatibility with existing software</li>
-        <li>Bug reports</li>
-      </ul>
-
-    <p> Please report your findings to the <a 
href="http://couchdb.apache.org#mailing-lists"; title="Apache CouchDB Developer 
Mailing list">Developer Maling List</a> or the <a 
href="https://github.com/apache/couchdb/issues";>Issue Tracker</a>.
-
-
-      <h2>Installation</h2>
-
-      <p> We are working pre-built binaries, until then, follow these 
installation steps.
-
-      <p> <strong>Prerequisites</strong>:
-        <p>
-          <ul>
-            <li>Erlang (R14B or R16B or later)</li>
-            <li>Spidermonkey 1.8.5</li>
-            <li>libicu-dev</li>
-            <li><a href="https://github.com/rebar/rebar";>rebar</a></li>
-            <li>Node.js with npm (for Fauxton, the web UI)</li>
-        </ul>
-      </p>
-
-      <p> See the <a 
href="https://github.com/apache/couchdb/blob/master/INSTALL.Unix.md";>CouchDB 
Install file</a> and the <a 
href="https://github.com/apache/couchdb-fauxton/blob/master/readme.md";>Fauxton 
Readme</a> for more detailed instructions on how to get the prerequisites set 
up.</p>
-
-      <p> With this all in place, run the following commands:</p>
-
-<code><pre>
-  git clone https://git-wip-us.apache.org/repos/asf/couchdb.git
-  npm install -g grunt-cli
-  cd couchdb
-  git checkout developer-preview-2.0
-  ./configure
-  make
-  dev/run
-</pre></code></p>
-
-    <p> The last command starts a three node cluster on the ports 15984, 25984 
and 35984. They represent the endpoints in a three node cluster and you can 
connect to either one of them to access the full cluster.</p>
-
-    <p>We provide a haproxy config for the three cluster nodes, run:
-<code><pre>
-  haproxy -f rel/haproxy.cfg
-</pre></code>
-    </p>
-    <p>
-      to listen on port 5984 and proxy to the nodes. You will have the CouchDB 
API available at port 5984 again.
-    </p>
-
-    <p> To get started, visit Fauxton, the new web UI at <a 
href="http://127.0.0.1:5984/_utils";>http://127.0.0.1:5984/_utils</a></p>
-
-  </div>
-
-  <div id="footer">
-
-    <p>Copyright &copy; 2016 The Apache Software Foundation &mdash; Licensed 
under the <a href="http://www.apache.org/licenses/LICENSE-2.0";>Apache License 
2.0</a><br>
-      Apache CouchDB, CouchDB, and the project logo are <a 
href="http://www.apache.org/foundation/marks/list/";>trademarks</a> of The 
Apache Software Foundation</p>
-
-    <a class="closing" href="#top"></a>
-
-  </div>
-
-  <script type="text/javascript">
-    var _gaq = _gaq || [];
-    _gaq.push(['_setAccount', 'UA-658988-6']);
-    _gaq.push(['_setDomainName', 'apache.org']);
-    _gaq.push(['_setAllowLinker', true]);
-    _gaq.push(['_trackPageview']);
-
-    (function() {
-    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
-    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
-    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
-    })();
-  </script>
-  <script type="text/javascript" 
src="https://issues.apache.org/jira/s/1c67ff5e37d44b99a6a3140ab88552c8-T/en_UK1zkmuk/6332/7/1.4.15/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-UK&collectorId=c4088f46";></script>
-  <script>
-    $(document).ready(function () {
-      $('.download-list').on('click', function (e) {
-        if (!$(e.target).attr('href')) {
-          return;
-        }
-        _gaq.push(['_trackEvent', 'Click', 'Download', 
$(e.target).attr('href')]);
-      });
-    });
-  </script>
-</body>
-
-</html>

http://git-wip-us.apache.org/repos/asf/couchdb-www/blob/a9f08a15/index.html
----------------------------------------------------------------------
diff --git a/index.html b/index.html
index 3dc04f4..1439093 100644
--- a/index.html
+++ b/index.html
@@ -87,7 +87,7 @@ Thanks to Yohei Shimomae and the Apache Cordova team for the 
original design.
       </ul>
 
       <div class="button-container">
-        <a class="button" href="#download">DOWNLOAD<small 
class="download-version">2.0.0 (Sept. 20th 2016)</small></a>
+        <a class="button" href="#download">DOWNLOAD<small 
class="download-version">2.1.0 (2017-08-07)</small></a>
       </div>
 
     </div>
@@ -103,7 +103,7 @@ Thanks to Yohei Shimomae and the Apache Cordova team for 
the original design.
       <p>
 
         Apache CouchDB&trade; lets you access your data where you need it by 
defining the
-        <strong><a 
href="http://docs.couchdb.org/en/master/replication/protocol.html"; title="4.2. 
Couch Replication Protocol &mdash; Apache CouchDB 2.0 Documentation
+        <strong><a 
href="http://docs.couchdb.org/en/master/replication/protocol.html"; title="4.2. 
Couch Replication Protocol &mdash; Apache CouchDB 2.1 Documentation
 ">Couch Replication Protocol</a></strong> that is implemented by a variety of 
projects and
         products that span every imaginable computing environment <strong>from 
globally distributed
         server-clusters</strong>, over <strong>mobile phones</strong> to 
<strong>web browsers</strong>.
@@ -119,7 +119,7 @@ Thanks to Yohei Shimomae and the Apache Cordova team for 
the original design.
         Store your data <strong>safely</strong>, on your own servers, or with 
any leading cloud
         provider. Your web- and native applications love CouchDB, because it 
speaks <strong>JSON
         natively</strong> and supports binary <strong></strong> for all your 
data storage needs.
-        <strong><a 
href="http://docs.couchdb.org/en/master/replication/protocol.html"; title="4.2. 
CouchDB Replication Protocol &mdash; Apache CouchDB 2.0 Documentation">The 
Couch Replication Protocol</a></strong> lets your data flow seamlessly between
+        <strong><a 
href="http://docs.couchdb.org/en/master/replication/protocol.html"; title="4.2. 
CouchDB Replication Protocol &mdash; Apache CouchDB 2.1 Documentation">The 
Couch Replication Protocol</a></strong> lets your data flow seamlessly between
         server clusters to mobile phones and web browsers, enabling a 
compelling, <strong><a
         href="http://offlinefirst.org";>offline-first</a></strong> 
user-experience while maintaining
         high performance and strong reliability. CouchDB comes with a 
<strong>developer-friendly
@@ -128,7 +128,7 @@ Thanks to Yohei Shimomae and the Apache Cordova team for 
the original design.
 
     </p>
 
-      <p>See the <a 
href="http://docs.couchdb.org/en/stable/intro/why.html";>introduction</a>, <a 
href="http://docs.couchdb.org/en/stable/intro/overview.html";>technical 
overview</a> for more information, or learn <a 
href="https://blog.couchdb.org/2016/08/23/check-out-the-road-to-couchdb-2-0-series/";>What’s
 new in 2.0</a>
+      <p>See the <a 
href="http://docs.couchdb.org/en/stable/intro/why.html";>introduction</a>, <a 
href="http://docs.couchdb.org/en/stable/intro/overview.html";>technical 
overview</a> for more information, or learn <a 
href="http://docs.couchdb.org/en/latest/whatsnew/2.1.html";>what’s new in 
2.1</a>.</p>
 
     </div>
 
@@ -568,7 +568,7 @@ Thanks to Yohei Shimomae and the Apache Cordova team for 
the original design.
   <hr>
 
   <div class="wrap download-pane">
-    <h2 class="icon icon-download">Download CouchDB 2.0.0</h2>
+    <h2 class="icon icon-download">Download CouchDB 2.1.0</h2>
   </div>
 
   <div class="grid">
@@ -581,49 +581,49 @@ Thanks to Yohei Shimomae and the Apache Cordova team for 
the original design.
 
         <ul class="list download-list">
           <li>
-            <a 
href="https://www.apache.org/dyn/closer.lua?path=/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz";
 class="type">Source</a>
+            <a 
href="https://www.apache.org/dyn/closer.lua?path=/couchdb/source/2.1.0/apache-couchdb-2.1.0.tar.gz";
 class="type">Source</a>
             <span class="info">
-              Version 2.0.0 |
-              <a href="http://docs.couchdb.org/en/latest/whatsnew/2.0.html"; 
class="release">Release Notes</a> |
-              <a 
href="https://www.apache.org/dist/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz.asc";>OpenPGP</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz.md5";>MD5</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz.sha1";>SHA1</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz.sha256";>SHA256</a>
+              Version 2.1.0 |
+              <a href="http://docs.couchdb.org/en/latest/whatsnew/2.1.html"; 
class="release">Release Notes</a> |
+              <a 
href="https://www.apache.org/dist/couchdb/source/2.1.0/apache-couchdb-2.1.0.tar.gz.asc";>OpenPGP</a>
 |
+              <a 
href="https://www.apache.org/dist/couchdb/source/2.1.0/apache-couchdb-2.1.0.tar.gz.md5";>MD5</a>
 |
+              <a 
href="https://www.apache.org/dist/couchdb/source/2.1.0/apache-couchdb-2.1.0.tar.gz.sha1";>SHA1</a>
 |
+              <a 
href="https://www.apache.org/dist/couchdb/source/2.1.0/apache-couchdb-2.1.0.tar.gz.sha256";>SHA256</a>
             </span>
           </li>
           <li>
-            <a 
href="https://dl.bintray.com/apache/couchdb/win/2.0.0.2/couchdb-2.0.0.2.msi"; 
class="type">
+            <a 
href="https://dl.bintray.com/apache/couchdb/win/2.1.0/apache-couchdb-2.1.0.msi"; 
class="type">
               Windows (x64)
             </a>
             <span class="info">
-              Erlang/OTP 18.3 | Version 2.0.0.2 |
-              <a href="http://docs.couchdb.org/en/latest/whatsnew/2.0.html"; 
class="release">Release Notes</a> |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/win/2.0.0.2/couchdb-2.0.0.2.msi.asc";>OpenPGP</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/win/2.0.0.2/couchdb-2.0.0.2.msi.md5";>MD5</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/win/2.0.0.2/couchdb-2.0.0.2.msi.sha1";>SHA1</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/win/2.0.0.2/couchdb-2.0.0.2.msi.sha256";>SHA256</a>
+              Erlang/OTP 18.3 | Version 2.1.0 |
+              <a href="http://docs.couchdb.org/en/latest/whatsnew/2.1.html"; 
class="release">Release Notes</a> |
+              <a 
href="https://www.apache.org/dist/couchdb/binary/win/2.1.0/apache-couchdb-2.1.0.msi.asc";>OpenPGP</a>
 |
+              <a 
href="https://dl.bintray.com/apache/couchdb/win/2.1.0/apache-couchdb-2.1.0.msi.md5";>MD5</a>
 |
+              <a 
href="https://dl.bintray.com/apache/couchdb/win/2.1.0/apache-couchdb-2.1.0.msi.sha1";>SHA1</a>
 |
+              <a 
href="https://dl.bintray.com/apache/couchdb/win/2.1.0/apache-couchdb-2.1.0.msi.sha256";>SHA256</a>
             </span>
           </li>
           <li>
-            <a 
href="https://dl.bintray.com/apache/couchdb/mac/2.0.0/Apache-CouchDB-2.0.0.zip"; 
class="type">
-              Mac OS X (10.6+)
+            <a 
href="https://dl.bintray.com/apache/couchdb/mac/2.1.0/Apache-CouchDB-2.1.0.zip"; 
class="type">
+              macOS (10.6+)
             </a>
             <span class="info">
-              Erlang/OTP 19.0.2 | Version 2.0.0 |
-              <a href="http://docs.couchdb.org/en/latest/whatsnew/2.0.html"; 
class="release">Release Notes</a> |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.0.0/Apache-CouchDB-2.0.0.zip.asc";>OpenPGP</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.0.0/Apache-CouchDB-2.0.0.zip.md5";>MD5</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.0.0/Apache-CouchDB-2.0.0.zip.sha1";>SHA1</a>
 |
-              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.0.0/Apache-CouchDB-2.0.0.zip.sha256";>SHA256</a>
+              Erlang/OTP 19.0.2 | Version 2.1.0 |
+              <a href="http://docs.couchdb.org/en/latest/whatsnew/2.1.html"; 
class="release">Release Notes</a> |
+              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.1.0/Apache-CouchDB-2.1.0.zip.asc";>OpenPGP</a>
 |
+              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.1.0/Apache-CouchDB-2.1.0.zip.md5";>MD5</a>
 |
+              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.1.0/Apache-CouchDB-2.1.0.zip.sha";>SHA1</a>
 |
+              <a 
href="https://www.apache.org/dist/couchdb/binary/mac/2.1.0/Apache-CouchDB-2.1.0.zip.sha256";>SHA256</a>
             </span>
           </li>
-          <!-- <li>
-            <a href="https://launchpad.net/~couchdb/+archive/stable"; 
class="type">Ubuntu packages</a>
+          <li>
+            <a 
href="http://docs.couchdb.org/en/latest/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages";
 class="type">Debian/Ubuntu/RHEL/CentOS packages</a>
             <span class="info">
-            Version 2.0.0 |
-            <a href="http://docs.couchdb.org/en/latest/whatsnew/1.6.html"; 
class="release">Release Notes</a>
+            Version 2.1.0 |
+            <a href="http://docs.couchdb.org/en/latest/whatsnew/2.1.html"; 
class="release">Release Notes</a>
             </span>
-          </li> -->
+          </li>
         </ul>
 
       </div>

http://git-wip-us.apache.org/repos/asf/couchdb-www/blob/a9f08a15/release-candidate/2.0/index.html
----------------------------------------------------------------------
diff --git a/release-candidate/2.0/index.html b/release-candidate/2.0/index.html
deleted file mode 100644
index 49c9503..0000000
--- a/release-candidate/2.0/index.html
+++ /dev/null
@@ -1,209 +0,0 @@
-<div id="listing"></div>
-<!-- add jquery - if you already have it just ignore this line -->
-<script 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js";></script>
-
-<!-- the JS variables for the listing -->
-<script type="text/javascript">
-  // this is https://github.com/rgrp/s3-bucket-listing
-  var S3BL_IGNORE_PATH = true;
-  var BUCKET_URL = 'https://couchdb-ci.s3-eu-west-1.amazonaws.com';
-  var S3B_ROOT_DIR = 'release-candidate/'
-  if (typeof S3BL_IGNORE_PATH == 'undefined' || S3BL_IGNORE_PATH!=true) {
-    var S3BL_IGNORE_PATH = false;
-  }
-
-  if (typeof BUCKET_URL == 'undefined') {
-    var BUCKET_URL = location.protocol + '//' + location.hostname;
-  }
-
-  if (typeof BUCKET_NAME != 'undefined') {
-      // if bucket_url does not start with bucket_name,
-      // assume path-style url
-      if (!~BUCKET_URL.indexOf(location.protocol + '//' + BUCKET_NAME)) {
-          BUCKET_URL += '/' + BUCKET_NAME;
-      }
-  }
-
-  if (typeof S3B_ROOT_DIR == 'undefined') {
-    var S3B_ROOT_DIR = '';
-  }
-
-  jQuery(function($) {
-    getS3Data();
-  });
-
-  function getS3Data(marker, html) {
-    var s3_rest_url = createS3QueryUrl(marker);
-    // set loading notice
-    $('#listing').html('<img 
src="//assets.okfn.org/images/icons/ajaxload-circle.gif" />');
-    $.get(s3_rest_url)
-      .done(function(data) {
-        // clear loading notice
-        $('#listing').html('');
-        var xml = $(data);
-        var info = getInfoFromS3Data(xml);
-        html = typeof html !== 'undefined' ? html + prepareTable(info) : 
prepareTable(info);
-        if (info.nextMarker != "null") {
-          getS3Data(info.nextMarker, html);
-        } else {
-          document.getElementById('listing').innerHTML = '<pre>' + html + 
'</pre>';
-        }
-      })
-      .fail(function(error) {
-        console.error(error);
-        $('#listing').html('<strong>Error: ' + error + '</strong>');
-      });
-  }
-
-  function createS3QueryUrl(marker) {
-    var s3_rest_url = BUCKET_URL;
-    s3_rest_url += '?delimiter=/';
-
-    //
-    // Handling paths and prefixes:
-    //
-    // 1. S3BL_IGNORE_PATH = false
-    // Uses the pathname
-    // {bucket}/{path} => prefix = {path}
-    //
-    // 2. S3BL_IGNORE_PATH = true
-    // Uses ?prefix={prefix}
-    //
-    // Why both? Because we want classic directory style listing in normal
-    // buckets but also allow deploying to non-buckets
-    //
-
-    var rx = '.*[?&]prefix=' + S3B_ROOT_DIR + '([^&]+)(&.*)?$';
-    var prefix = '';
-    if (S3BL_IGNORE_PATH==false) {
-      var prefix = location.pathname.replace(/^\//, S3B_ROOT_DIR);
-    }
-    var match = location.search.match(rx);
-    if (match) {
-      prefix = S3B_ROOT_DIR + match[1];
-    } else {
-      if (S3BL_IGNORE_PATH) {
-        var prefix = S3B_ROOT_DIR;
-      }
-    }
-    if (prefix) {
-      // make sure we end in /
-      var prefix = prefix.replace(/\/$/, '') + '/';
-      s3_rest_url += '&prefix=' + prefix;
-    }
-    if (marker) {
-      s3_rest_url += '&marker=' + marker;
-    }
-    return s3_rest_url;
-  }
-
-  function getInfoFromS3Data(xml) {
-    var files = $.map(xml.find('Contents'), function(item) {
-      item = $(item);
-      return {
-        Key: item.find('Key').text(),
-        LastModified: item.find('LastModified').text(),
-        Size: item.find('Size').text(),
-        Type: 'file'
-      }
-    });
-    var directories = $.map(xml.find('CommonPrefixes'), function(item) {
-      item = $(item);
-      return {
-        Key: item.find('Prefix').text(),
-        LastModified: '',
-        Size: '0',
-        Type: 'directory'
-      }
-    });
-    if ($(xml.find('IsTruncated')[0]).text() == 'true') {
-      var nextMarker = $(xml.find('NextMarker')[0]).text();
-    } else {
-      var nextMarker = null;
-    }
-    return {
-      files: files,
-      directories: directories,
-      prefix: $(xml.find('Prefix')[0]).text(),
-      nextMarker: encodeURIComponent(nextMarker)
-    }
-  }
-
-  // info is object like:
-  // {
-  //    files: ..
-  //    directories: ..
-  //    prefix: ...
-  // } 
-  function prepareTable(info) {
-    var files = info.files.concat(info.directories)
-      , prefix = info.prefix
-      ;
-
-    files = files.sort(function(a, b) {
-      if(a.LastModified == b.LastModified) {
-        return 0;
-      }
-      return a.LastModified < b.LastModified ? 1 : -1;
-    });
-    var cols = [ 45, 30, 15 ];
-    var content = [];
-    content.push(padRight('Last Modified', cols[1]) + '  ' + padRight('Size', 
cols[2]) + 'Key \n');
-    content.push(new Array(cols[0] + cols[1] + cols[2] + 4).join('-') + '\n');
-
-    // add the ../ at the start of the directory listing
-    if (prefix) {
-      var up = prefix.replace(/\/$/, '').split('/').slice(0, 
-1).concat('').join('/'), // one directory up
-        item = {
-          Key: up,
-          LastModified: '',
-          Size: '',
-          keyText: '../',
-          href: S3BL_IGNORE_PATH ? '?prefix=' + up : '../'
-        },
-        row = renderRow(item, cols);
-      // content.push(row + '\n');
-    }
-
-    jQuery.each(files, function(idx, item) {
-      if (item.Key == 'release-candidate/' || item.Key == 
'release-candidate/index.html') {
-        return;
-      }
-      // strip off the prefix
-      item.keyText = item.Key.substring(prefix.length);
-      if (item.Type === 'directory') {
-        if (S3BL_IGNORE_PATH) {
-          item.href = location.protocol + '//' + location.hostname + 
location.pathname + '?prefix=' + item.Key;
-        } else {
-          item.href = item.keyText;
-        }
-      } else {
-        item.href = BUCKET_URL + '/' + encodeURIComponent(item.Key);
-        item.href = item.href.replace(/%2F/g, '/');
-      }
-      var row = renderRow(item, cols);
-      content.push(row + '\n');
-    });
-
-    return content.join('');
-  }
-
-  function renderRow(item, cols) {
-    var row = '';
-    row += padRight(item.LastModified, cols[1]) + '  ';
-    row += padRight(item.Size, cols[2]);
-    row += '<a href="' + item.href + '">' + item.keyText + '</a>';
-    return row;
-  }
-
-  function padRight(padString, length) {
-    var str = padString.slice(0, length-3);
-    if (padString.length > str.length) {
-      str += '...';
-    }
-    while (str.length < length) {
-      str = str + ' ';
-    }
-    return str;
-  }
-</script>

Reply via email to