accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r913109 - in /websites/staging/accumulo/trunk/content: ./ downloads/index.html
Date Fri, 20 Jun 2014 20:08:30 GMT
Author: buildbot
Date: Fri Jun 20 20:08:29 2014
New Revision: 913109

Log:
Staging update by buildbot for accumulo

Modified:
    websites/staging/accumulo/trunk/content/   (props changed)
    websites/staging/accumulo/trunk/content/downloads/index.html

Propchange: websites/staging/accumulo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jun 20 20:08:29 2014
@@ -1 +1 @@
-1603625
+1604270

Modified: websites/staging/accumulo/trunk/content/downloads/index.html
==============================================================================
--- websites/staging/accumulo/trunk/content/downloads/index.html (original)
+++ websites/staging/accumulo/trunk/content/downloads/index.html Fri Jun 20 20:08:29 2014
@@ -187,7 +187,7 @@ Latest 1.5 release: <strong>1.5.1</stron
 
     <h1 class="title">Apache Accumulo Downloads</h1>
 
-    <script>
+    <script type="text/javascript">
 /**
 * Function that tracks a click on an outbound link in Google Analytics.
 * This function takes a valid URL string as an argument, and uses that URL string
@@ -207,22 +207,75 @@ var trackOutboundLink = function(url) {
     return false;
   }
 };
+
+var createSection = function(name, items, divider = true) {
+  var section = ''; 
+  if (divider) {
+    section += '<li class="divider" <="" li=""> </li>';
+  }
+  section += '<li class="dropdown-header">' + name + '</li>';
+  for (var i = 0; i < items.length; i++) {
+    section += '<li><a href="#">' + items[i] + '</a></li>';
+  }
+  return section;
+};
+
+var updateLinks = function(mirror) {
+  $('a[link-suffix]').each(function(i, obj) {
+    $(obj).attr('href', mirror.replace(/\/+$/, "") + $(obj).attr('link-suffix'));
+  }); 
+};
+
+var mirrorsCallback = function(json) {
+  var mirrorSelection = $("#mirror_selection");
+  var htmlContent =  '<span class="help-block">Select a mirror:</span>' +
+    '<div class="btn-group">' +
+      '<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">'
+
+        '<span data-bind="label">' + json.preferred + '</span>&nbsp;<span
class="caret">' +
+      '</button>' +
+      '<ul class="dropdown-menu">';
+
+  htmlContent += createSection("Preferred Mirror (based on location)", [ json.preferred ],
false);
+  htmlContent += createSection("HTTP Mirrors", json.http);
+  htmlContent += createSection("FTP Mirrors", json.ftp);
+  htmlContent += createSection("Backup Mirrors", json.backup);
+
+  htmlContent += '</ul></div>';
+  mirrorSelection.html(htmlContent);
+
+  $("#mirror_selection a").click(function(event) {
+      var target=$(event.target);
+      var mirror=target.text();
+      updateLinks(mirror);
+      target.closest('.btn-group').find('[data-bind="label"]').text(mirror).end();
+  }); 
+
+  updateLinks(json.preferred);
+};
+
+// get mirrors when page is ready
+var mirrorURL = "http://www.apache.org/dyn/closer.cgi";
+$(function() { $.getJSON(mirrorURL + "?asjson=1", mirrorsCallback); }); 
+
 </script>
 
+<div id="mirror_selection"></div>
+
+<p><br /></p>
 <p>Be sure to verify your downloads by these <a href="https://www.apache.org/info/verification.html"
title="Verify">procedures</a> using these <a href="https://www.apache.org/dist/accumulo/KEYS"
title="KEYS">KEYS</a>.</p>
 <h2 id="current-release">Current Release</h2>
-<h3 id="160-wzxhzdk3latestwzxhzdk4">1.6.0 <span class="label label-primary">latest</span></h3>
+<h3 id="160-wzxhzdk5latestwzxhzdk6">1.6.0 <span class="label label-primary">latest</span></h3>
 <p>The most recent Apache Accumulo&trade; release is version 1.6.0. See the <a
href="/release_notes/1.6.0.html" title="1.6.0 Release Notes">release notes</a> and
<a href="https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=blob_plain;f=CHANGES;hb=06162580e885f11863d1a6d22f952bce35b78b68"
title="1.6.0 CHANGES">CHANGES</a>.</p>
 <p>For convenience, <a href="https://www.apache.org/dist/accumulo/1.6.0/MD5SUM"
title="1.6.0 MD5 file hashes">MD5</a> and <a href="https://www.apache.org/dist/accumulo/1.6.0/SHA1SUM"
title="1.6.0 SHA1 file hashes">SHA1</a> hashes are also available.</p>
 <table class="table">
 <tr>
 <th>Generic Binaries</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-bin.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.6.0-bin.tar.gz');">accumulo-1.6.0-bin.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-bin.tar.gz"
link-suffix="/accumulo/1.6.0/accumulo-1.6.0-bin.tar.gz" onClick="return trackOutboundLink('/downloads/accumulo-1.6.0-bin.tar.gz');">accumulo-1.6.0-bin.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.6.0/accumulo-1.6.0-bin.tar.gz.asc">ASC</a></td>
 </tr>
 <tr>
 <th>Source</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-src.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.6.0-src.tar.gz');">accumulo-1.6.0-src.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.6.0/accumulo-1.6.0-src.tar.gz"
link-suffix="/accumulo/1.6.0/accumulo-1.6.0-src.tar.gz" onClick="return trackOutboundLink('/downloads/accumulo-1.6.0-src.tar.gz');">accumulo-1.6.0-src.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.6.0/accumulo-1.6.0-src.tar.gz.asc">ASC</a></td>
 </tr>
 </table>
@@ -241,37 +294,37 @@ var trackOutboundLink = function(url) {
 <table class="table">
 <tr>
 <th>Generic Binaries</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.tar.gz');">accumulo-1.5.1-bin.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.tar.gz"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-bin.tar.gz" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.tar.gz');">accumulo-1.5.1-bin.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-bin.tar.gz.asc">ASC</a></td>
 </tr>
 <tr>
 <th rowspan="6">Platform Binaries</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.rpm"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.rpm');">accumulo-1.5.1-bin.rpm</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.rpm"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-bin.rpm" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.rpm');">accumulo-1.5.1-bin.rpm</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-bin.rpm.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.rpm"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-native.rpm');">accumulo-1.5.1-native.rpm</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.rpm"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-native.rpm" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-native.rpm');">accumulo-1.5.1-native.rpm</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-native.rpm.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.rpm"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-test.rpm');">accumulo-1.5.1-test.rpm</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.rpm"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-test.rpm" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-test.rpm');">accumulo-1.5.1-test.rpm</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-test.rpm.asc"asc>ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.deb"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.deb');">accumulo-1.5.1-bin.deb</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-bin.deb"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-bin.deb" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-bin.deb');">accumulo-1.5.1-bin.deb</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-bin.deb.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.deb"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-native.deb');">accumulo-1.5.1-native.deb</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-native.deb"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-native.deb" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-native.deb');">accumulo-1.5.1-native.deb</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-native.deb.asc">ASC</a></td>
 </tr>
 <tr>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.deb"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-test.deb');">accumulo-1.5.1-test.deb</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-test.deb"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-test.deb" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-test.deb');">accumulo-1.5.1-test.deb</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-test.deb.asc">ASC</a></td>
 </tr>
 <tr>
 <th>Source</th>
-<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-src.tar.gz"
onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-src.tar.gz');">accumulo-1.5.1-src.tar.gz</a></td>
+<td><a href="https://www.apache.org/dyn/closer.cgi/accumulo/1.5.1/accumulo-1.5.1-src.tar.gz"
link-suffix="/accumulo/1.5.1/accumulo-1.5.1-src.tar.gz" onClick="return trackOutboundLink('/downloads/accumulo-1.5.1-src.tar.gz');">accumulo-1.5.1-src.tar.gz</a></td>
 <td><a href="https://www.apache.org/dist/accumulo/1.5.1/accumulo-1.5.1-src.tar.gz.asc">ASC</a></td>
 </tr>
 </table>



Mime
View raw message