Author: marcus
Date: Thu May 17 22:55:00 2012
New Revision: 1339910
URL: http://svn.apache.org/viewvc?rev=1339910&view=rev
Log:
Extend the DL logic to show DEB or RPM with 32-Bit or 64-Bit on 'index.html'
Modified:
incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js
Modified: incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js
URL:
http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js?rev=1339910&r1=1339909&r2=1339910&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js (original)
+++ incubator/ooo/ooo-site/trunk/content/download/download_new_dl.js Thu May 17
22:55:00 2012
@@ -494,24 +494,24 @@ function getPlatform() {
if (
navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
- return "Linux Debian 64-bit";
+ return "Linux Debian 64-bit
(DEB)";
} else {
- return "Linux 64-bit";
+ return "Linux 64-bit (RPM)";
}
} else {
- return "Linux 64-bit";
+ return "Linux 64-bit (RPM)";
}
} else {
if ( navigator.userAgent != null ) {
if (
navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
- return "Linux Debian";
+ return "Linux Debian 32-Bit
(DEB)";
} else {
- return "Linux";
+ return "Linux 32-Bit (RPM)";
}
} else {
- return "Linux";
+ return "Linux 32-Bit (RPM)";
}
}
} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 )
{
@@ -559,24 +559,24 @@ function getPlatform(schema) {
if (
navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
- return "Linux Debian 64-bit";
+ return "Linux Debian 64-bit
(DEB)";
} else {
- return "Linux 64-bit";
+ return "Linux 64-bit (RPM)";
}
} else {
- return "Linux 64-bit";
+ return "Linux 64-bit (RPM)";
}
} else {
if ( navigator.userAgent != null ) {
if (
navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
- return "Linux Debian";
+ return "Linux Debian 32-Bit
(DEB)";
} else {
- return "Linux";
+ return "Linux 32-Bit (RPM)";
}
} else {
- return "Linux";
+ return "Linux 32-Bit (RPM)";
}
}
} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 )
{