Author: marcus
Date: Sat Jul 27 09:30:24 2013
New Revision: 1507615

URL: http://svn.apache.org/r1507615
Log:
Recognize unknown platforms/OS better  and show this in the green download box, 
then offer the 'other.html' webpage with alternative download links

Modified:
    openoffice/ooo-site/trunk/content/download/test/index.html

Modified: openoffice/ooo-site/trunk/content/download/test/index.html
URL: 
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/index.html?rev=1507615&r1=1507614&r2=1507615&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/index.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/index.html Sat Jul 27 
09:30:24 2013
@@ -53,25 +53,23 @@
   var LINK        = getLink();
 
   if ( hasMirrorLink() ) {
-    /*
-    if ( LINK.toLowerCase().indexOf( "other" ) ) {
-      // OS and/or package manager was not recognized, therefore use 
"other.html" as download link.
-      document.write( "<div class=\"first button green\" id=\"optionitem1\" 
onclick=\"openItem('optionitem1','"
-      + LINK + "');" + "return false;\">" );
-      document.write( "<h2><a href='" + LINK + "' title='" + LINK + 
"'>Download Apache OpenOffice " + VERSION + "</a></h2>"
-      + "<p><a href='" + LINK + "' title='" + LINK + "'>Click here for the 
most recent version for "
-      + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + 
"</b>.</a></p><br />");
-    } else {
-    */
+    if ( LINK.toLowerCase().indexOf( "sourceforge" ) ) {
       // Download directly from a mirror with displayed platform and language.
       document.write( "<div class=\"first button green\" id=\"optionitem1\" 
onclick=\"openItem('optionitem1','"
       + LINK + "');" + "return false;\">" );
       document.write( "<h2><a href='" + LINK + "' title='Version " + VERSION + 
" - Milestone " + MILESTONE
       + " - Build ID " + BUILD + " - SVN " + SVN_REV + "'>Download Apache 
OpenOffice " + VERSION + "</a></h2>"
-      + "<p><a href='" + LINK + "' title='Version " + VERSION + " - Milestone 
" + MILESTONE
-      + " - Build ID " + BUILD + " - SVN " + SVN_REV + "'>Click here for the 
most recent version for "
+      + "<p><a href='" + LINK + "' title='Version " + VERSION + " - Milestone 
" + MILESTONE + " - Build ID " + BUILD
+      + " - SVN " + SVN_REV + "'>Click here for the most recent version for "
       + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + 
"</b>.</a></p>");
-    //  }
+    } else {
+      // OS and/or package manager was not recognized, therefore use 
"other.html" as download link.
+      document.write( "<div class=\"first button green\" id=\"optionitem1\" 
onclick=\"openItem('optionitem1','"
+      + LINK + "');" + "return false;\">" );
+      document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>Apache 
OpenOffice " + VERSION
+      + " is not available for:<br />" + UI_PLATFORM + "</a></h2>"
+      + "<p><a href='" + LINK + "' title='" + LINK + "'>Please choose from the 
alternative download webpage.</a></p>");
+    }
   } else {
     // Download from an alternative webpage if hasMirrorLink() == false.
     document.write( "<div class=\"first button green\" id=\"optionitem1\" 
onclick=\"openItem('optionitem1','"
@@ -79,8 +77,8 @@
     document.write( "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" + 
LANG_ARRAY[ 4 ] + "'>"
     + "Download Apache OpenOffice " + VERSION + "</a></h2>"
     + "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>A 
release for "
-    + "<b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b> is not 
available. Please "
-    + "choose another language from the alternative download webpage.</a></p>" 
);
+    + "<b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b> is not 
available. Please choose another language from the "
+    + "alternative download webpage.</a></p>" );
   }
   document.write( "</div>" );
 


Reply via email to