You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/02/10 22:42:51 UTC

svn commit: r1566757 - /openoffice/ooo-site/trunk/content/download/test/index.html

Author: marcus
Date: Mon Feb 10 21:42:51 2014
New Revision: 1566757

URL: http://svn.apache.org/r1566757
Log:
Code beautifying

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=1566757&r1=1566756&r2=1566757&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/index.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/index.html Mon Feb 10 21:42:51 2014
@@ -57,8 +57,9 @@ screen reader. -->
   var LINK        = getLink();
 
   if ( hasMirrorLink() ) {
-    if ( LINK.toLowerCase().indexOf( "sourceforge" ) != -1 ) {
-      // Download directly from Sourceforge with displayed platform and language.
+    if ( SOURCEFORGE ) {
+      // If download URL contains "sourceforge" (-> normal and correct download link),
+      // then download from Sourceforge 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
@@ -68,8 +69,9 @@ screen reader. -->
       + " | SVN " + SVN_REV + " | Released: " + REL_DATE + "'>Click here for the most recent version for:<br />"
       + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + "</b> | ~" + FILESIZE + " MByte | Released: "
       + REL_DATE + "<br /></a></p>" );
-    } else if ( UI_PLATFORM.toLowerCase().indexOf( "unknown" ) != -1 ) {
-      // If platform and/or package manager was not recognized, then use "other.html" as download link.
+    } else if ( OTHER ) {
+      // If download URL contains "other" (-> platform, OS or package manager was not recognized),
+      // then 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 + "'>"
@@ -77,8 +79,9 @@ screen reader. -->
       + "<p><a href='" + LINK + "' title='" + LINK + "'>Apache OpenOffice " + VERSION + " for "
       + "<b>" + UI_PLATFORM + "</b> is not available. Please choose another platform build from the alternative download "
       + "webpage.</a></p>" );
-    } else if ( OLD_PLATFORM ) {
-      // If MacOS X version is <= 10.6, then provide download link form AOO 4.0.1 archive.
+    } else if ( ARCHIVE ) {
+      // If download URL contains "archive" (-> platform/OS is no longer supported),
+      // then use the ASF archive 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 + "'>"
@@ -134,16 +137,16 @@ screen reader. -->
   <div class="first button green" id="optionitem1">
     <h2><a>Download Apache OpenOffice</a></h2>
     <p><a href="http://www.apache.org/dyn/aoo-closer.cgi/openoffice/">Your browser does not seem to allow JavaScript
-    on websites. This technique is used on this webpage for presenting the actual download links. If you want to
-    download Apache OpenOffice, go to the alternative download page, and you will skip this page. Our apologies for
-    the inconvenience.</a></p>
+    on websites. This technique is used on this webpage for presenting the actual download link. If you want to download
+    Apache OpenOffice, click here to go to the alternative download page, and you will skip this page.
+    Our apologies for the inconvenience.</a></p>
   </div>
   <div class="sub-green">
     <p><a href="../../porting/index.html"
     title="Get Apache OpenOffice software packaged as portable USB versions and third-party ports">
     <b>Portable USB versions</b> and third-party ports</a> |
     <a href="../../development/releases/index.html"
-    title="What is new, what has been improved in Apache OpenOffice?">Release Notes</a> | <br />
+    title="What is new, what has been improved in Apache OpenOffice?"><b>Release Notes</b></a> | <br />
     <a href="../other-341.html" title="Get the old version of Apache OpenOffice">Old Apache OpenOffice</a> |
     <a href="../legacy/index.html" title="Get the legacy version of OpenOffice.org">Legacy OpenOffice.org</a></p>
   </div>