incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1385134 - /incubator/ooo/ooo-site/trunk/content/download/test/new/index.html
Date Sat, 15 Sep 2012 17:26:29 GMT
Author: marcus
Date: Sat Sep 15 17:26:28 2012
New Revision: 1385134

URL: http://svn.apache.org/viewvc?rev=1385134&view=rev
Log:
Reduced number of function calls, function calls without parameters, renamed variables

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

Modified: incubator/ooo/ooo-site/trunk/content/download/test/new/index.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/new/index.html?rev=1385134&r1=1385133&r2=1385134&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/new/index.html (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/new/index.html Sat Sep 15 17:26:28
2012
@@ -31,23 +31,23 @@
   <!--
   // Set a specific language ISO code to force to assemble a certain localized build as download
URL
   var NL_LANGUAGE = "";
-  var LINK        = getLink( VERSION, NL_LANGUAGE );
+  var LINK        = getLink();
 
-  if ( hasMirrorLink( NL_LANGUAGE ) ) {
+  if ( hasMirrorLink() ) {
     // Download directly from a Sourceforge 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='" + LINK + "'>Download
Apache OpenOffice " + VERSION + "</a></h2>"
-    + "<p><a href='" + LINK + "' title='" + LINK + "'>Click here to start the
download for <b>" + PLATFORM + "</b> and <b>"
-    + LANG_ARRAY[ 2 ] + "</b>.</a></p>" );
+    + "<p><a href='" + LINK + "' title='" + LINK + "'>Click here to start the
download for <b>" + UI_PLATFORM + "</b>"
+    + " and <b>" + LANG_ARRAY[ 2 ] + "</b>.</a></p>" );
   } else {
     // Download from an alternative webpage as hasMirrorLink() == false.
     document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
     + LANG_ARRAY[ 4 ] + "');" + "return false;\">" );
     document.write( "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[
4 ] + "'>Apache OpenOffice " + VERSION
     + "</a></h2>"
-    + "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>A
release for <b>" + PLATFORM + "</b> and <b>"
-    + LANG_ARRAY[ 2 ] + "</b> is not available. Click here to choose from the alternative
download webpage.</a></p>" );
+    + "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>A
release for <b>" + UI_PLATFORM + "</b>"
+    + " and <b>" + LANG_ARRAY[ 2 ] + "</b> is not available. Click to choose
from alternative download webpage.</a></p>" );
   }
 
   document.write( "</div>" );
@@ -57,9 +57,9 @@
     + "<a href='other.html#tested-sdk' title='Get all source code tarballs and SDK to
download'>"
     + "<b>Source Code tarballs and SDK</b></a> | <br />"
     + "Signatures and Hashes: "
-    + "<a href='" + getChecksum( VERSION, NL_LANGUAGE, "asc" )    + "' + title='ASC signature'>ASC</a>
, "
-    + "<a href='" + getChecksum( VERSION, NL_LANGUAGE, "md5" )    + "' + title='MD5 hash'>MD5</a>
, "
-    + "<a href='" + getChecksum( VERSION, NL_LANGUAGE, "sha256" ) + "' + title='SHA256
hash'>SHA256</a> | "
+    + "<a href='" + CHECKSUM_ASC    + "' + title='ASC signature'>ASC</a> , "
+    + "<a href='" + CHECKSUM_MD5    + "' + title='MD5 hash'>MD5</a> , "
+    + "<a href='" + CHECKSUM_SHA256 + "' + title='SHA256 hash'>SHA256</a> | "
     + "<a href='../development/releases/" + VERSION + ".html'"
     + "title='What is new, what has been improved in Apache OpenOffice " + VERSION + "?'>Release
Notes</a> | "
     + "<a href='legacy/index.html' title='Get the legacy version OpenOffice.org 3.3.0'>Legacy
Version</a></p>"



Mime
View raw message