Exclude gerrit-snapshot-* from releases page

This allows us to upload periodic snapshots as necessary without
cluttering up this page.

Change-Id: I4c0e21787fa0d2ee352e1fc70b103c8b1d24434d
This commit is contained in:
Dave Borowitz 2014-02-18 15:24:52 -08:00 committed by David Pursehouse
parent f63ac2c61b
commit a2d8925653

View File

@ -47,7 +47,12 @@ function(data) {
var docs = 'https://gerrit-documentation.storage.googleapis.com/';
var src = 'https://gerrit.googlesource.com/gerrit/+/'
data.items.sort(function(a,b) {
var items = data.items.filter(function(i) {
return i.name.indexOf('gerrit-snapshot-') != 0;
});
items.sort(function(a,b) {
var av = rx.exec(a.name);
var bv = rx.exec(b.name);
if (!av || !bv) {
@ -75,8 +80,8 @@ function(data) {
});
var latest = false;
for (var i = 0; i < data.items.length; i++) {
var f = data.items[i];
for (var i = 0; i < items.length; i++) {
var f = items[i];
var v = rx.exec(f.name);
if ('index.html' == f.name) {